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

(13)Permission denied: make_sock: could not bind to address
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 *