I installed XAMPP in my Ubuntu version. I start apache with:
sudo /opt/lampp/lampp start
and I read in my console this error:
Another web server is already running
So I think to modify the port's values httpd.conf
and httpd-ssl.conf
, in details I have mofidy port:
80--->1580 (httpd.conf)
443-->4443 (httpd-ssl.conf)
I closed apache with:
sudo /etc/init.d/apache2 stop
And After I do:
sudo /opt/lampp/lampp start
But I obtain:
[APACHE] Another web server is already running
Anyone can help me?
Here's how i solved it on Pop OS:
Run sudo netstat -nap | grep:80
sudo netstat -nap | grep:80
to get the pid of what's running on port 80
You should get an output similar to:
tcp6 0 0:::80:::* LISTEN 1166/apache2
Note the pid. In this case apache2 is running on pid 1166
Run sudo kill 1166
. Be sure to replace 1166 with the actual pid from the output of command 1.
Start apache again sudo /opt/lampp/lampp start
. This time it should start with no problems.
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/mysql stop
sudo /etc/init.d/proftpd stop
Then restart
sudo /opt/lampp/lampp start
You can try:
sudo su
Type your password:
/etc/init.d/apache2 stop
[ ok ] Stopping apache2 (via systemctl): apache2.service.
After that, you can try to run it again by typing:
sudo /opt/lampp/xampp start
Starting XAMPP for Linux 7.2.9-0...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
I had such a problem, I tried everything. Finally, I disabled ssl for Apache and it worked.
[root@localhost lampp]# /opt/lampp/xampp disablessl
I am getting the same problem ( another web server already runing )
write this code in terminal
/opt/lampp/xampp disablessl
then check for the apache
sudo /opt/lampp/xampp start
Starting XAMPP for Linux 7.2.5-0...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...already running.
XAMPP: Starting ProFTPD...already running.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.