1

When trying to restart Apache (with: service apache2 restart), I get the following error:

/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.

When I try to restart it with another command (sudo /etc/init.d/apache2 restart), I get the following error:

* Restarting web server apache2                                      
apache2: Could not reliably determine the server's fully qualified
domain name, using 127.0.1.1 for ServerName  ... waiting apache2:
Could not reliably determine the server's fully qualified domain name,
using 127.0.1.1 for ServerName

I had previously edited etc/apache2/httpd.conf with:

ServerName localhost

In order to resolve the above issue, but it seems not to have worked.

Can anyone help me out with this?

1 Answers1

1

I am going to get laughed off the planet. I was getting this error also; I had forgotten the all important sudo
sudo service apache2 restart

wruckie
  • 199