xampp: Apache WebServer is stopped

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?

2

5 Answers

This is what works for me

  1. Open the file /opt/lampp/etc/httpd.conf
  2. Find Listen 80 and change it to some other port (eg Listen 8000)
  3. Open the file /opt/lampp/etc/extra/httpd-ssl.conf
  4. Find Listen 443 and change it to some other port (eg Listen 4431)
  5. Open the file /opt/lampp/lampp
  6. Search for the testport 80 and replace it with testport 8000. Also change testport 443 to testport 4431.
  7. Now run /opt/lampp/lampp start (it works now).
2

First, verify that the service is not already running:

sudo service apache2 status

If 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.

3
  • Open your terminal and run the following commandsudo apachectl stop
  • Try rerunning your apache server from xamp again.

You Might Also Like