I am using Ubuntu 14.04. I've installed xampp. When I open the xampp control panel (as root/another user) all the services start running when I click start except Apache WebServer. What can I do to make it start?
25 Answers
This is what works for me
- Open the file
/opt/lampp/etc/httpd.conf - Find
Listen 80and change it to some other port (egListen 8000) - Open the file
/opt/lampp/etc/extra/httpd-ssl.conf - Find
Listen 443and change it to some other port (egListen 4431) - Open the file
/opt/lampp/lampp - Search for the
testport 80and replace it withtestport 8000. Also changetestport 443totestport 4431. - Now run
/opt/lampp/lampp start(it works now).
First, verify that the service is not already running:
sudo service apache2 statusIf it is running, to stop it, do
sudo service apache2 stop 3 At first you can try the two statements for apache which are:
sudo service apache2 status
sudo service apache2 stop
Even after this if it doesnt work then your port (mostly 80) is busy with some process and to see the process on port 80: type this:-
- sudo netstat -lpn |grep :80
we have to kill the process in order for apache to work: type this
- sudo kill
sudo lsof -t -i:80
and then by xampp apache should finally work, and it can be verified by viewing localhost and phpmyadmin
Start xampp by sudo /opt/lampp/lampp start this usually will return the error, already running etc.
- Open your terminal and run the following commandsudo apachectl stop
- Try rerunning your apache server from xamp again.