Sometimes the port assigned to apache2 may be used by some other services. In such cases, if we try to live apache2 server then it fails. The following message is shown in ubuntu 10.04 in my case:
Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 0.0.0.3 for ServerName (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs
Here is one of the ways to overcome this problem:
1. see who is using the port 80 :
3. kill all the services in 2. :
Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 0.0.0.3 for ServerName (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs
Here is one of the ways to overcome this problem:
1. see who is using the port 80 :
sudo lsof -i :80
2. get the pid of the services in 1. E.g.: 15773. kill all the services in 2. :
sudo kill 1577
4. restart apache2:
sudo /etc/init.d/apache2 restart
Comments