Saturday, June 26, 2010

UNABLE TO RESTART APACHE SERVER ON LINUX UBUNTU


apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
 

When I am working apache. just i want to check whether how start,stop and restart server works. unfortunately when i stop and tried to restart it i couldn't. The solution is...

To fix this problem in Ubuntu follow this steps.


 1. sudo /etc/init.d/apache2 restart
to fix this problem you need to modify httpd.conf file 
2. sudo gedit /etc/apache2/httpd.conf


This file would be empty just you need to type 


ServerName localhost


save and exit the gedit. 


finally type this command in your terminal 


3. sudo /etc/init.d/apache2 restart


I hope your problem is fixed. if you find any better 
solution or other solution please let me know 

No comments: