Score:0

Can't start Apache because port 80 is taken by another application on Ubuntu

me flag

Recently I installed Ubuntu 21.04 and I can't start the Apache server from Xampp8.0. I have installed Nginx1.8, Postgresql14, Oh my Zsh, Xampp8.0, and ...

➜  ~ sudo lsof -i:80
[sudo] password for mahdi: 
COMMAND PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
apache2 971     root    4u  IPv6  25043      0t0  TCP *:http (LISTEN)
apache2 976 www-data    4u  IPv6  25043      0t0  TCP *:http (LISTEN)
apache2 977 www-data    4u  IPv6  25043      0t0  TCP *:http (LISTEN)

I changed the Apache port to 81 and it runs, but the problem is that I can't access localhost/phpmyadmin and I get this error:

Not Found
The requested URL was not found on this server.

Apache/2.4.48 (Ubuntu) Server at localhost Port 80

I want to run my Laravel application. when I serve my Laravel application and to go localhost:8000, I have this error:

Illuminate\Database\QueryException
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `sessions` where `id` = PZYpvfMnDFX6jgNiibNL6cnNnq0xYAZNIQeMBOwB limit 1)

I have posted another question with a related issue.

Can't access phpmyadmin and local localhost:8000 with two errors for each of them

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.