Apache command

Here are some useful command for running Apache on Linux:
– Operation: /etc/init.d/apache2 start|stop|reload|restart|configtest

– Errors:
Could not reliably determine the server’s fully qualified domain name
Solution:
Use your favorite text editing program (I use vi here) and open the file.
sudo vi /etc/apache2/apache2.conf

Add the following line somewhere:
ServerName localhost

and restart Apache.
sudo /etc/init.d/apache2 restart

Error:
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
Solution:
Run on sudo authority

Ubuntu – where is the apache error log ?
tail -f /var/log/apache2/error.log

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.