AH00015: Unable to open logs Action 'start' failed. in ubuntu 14.04
Solution 1:
Run
sudo netstat -tulpn | grep :80
and you will get output something like
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1066/lighttpd
note the pid of the process listening to the port, in my case it was 1066. Then run
sudo kill -9 1066
Remember to change the pid to the one that is listening to the port, It might not be the same as 1066
Solution 2:
What type of server are you running this on?
To resolve the first error
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
You will need to edit httpd.conf
file, add this line:
ServerName localhost
To resolve the other errors you should make sure that you are trying to run Apache with root privileges.
sudo /usr/sbin/apachectl start