Sunday, 18 March 2012

Troubleshooting Apache / LAMP Server

If you get this error: or you are unable to see http://localhost/ in your browser properly

sudo nano /etc/apache2/conf.d/fqdn
or
gksu "gedit /etc/apache2/conf.d/fqdn"

then add below line to file and save it and close the file.
ServerName localhost

This can all be done in a single command with the following:
echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn

Now have fun because its done

Please say thanks. Bcz i really mean it.

No comments:

Post a Comment