When you are trying to restart your apache2 service by inserting command sudo /etc/init.d/apache2 restart , then you got the following error message:
Could not determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
To fix this problem, all you have to do is following instructions as follows:
-
Open your system httpd.conf file by running:
sudo vi /etc/apache2/httpd.conf
in your terminal, then enter a line for ServerName. For Example:
ServerName ryawww.myvaio.com
after all, don’t forget to make sure you save all the changes you have made to the file.
-
Open your system hosts file by running:
sudo vi /etc/hosts
in your terminal, then in the line which consists 127.0.0.1 localhost, you need to add:
127.0.0.1 localhost.myvaio localhost ryawww.myvaio.com
after all, don’t forget to make sure you save all the changes you have made to the file.
Try to restart your apache2 service again.
Good Luck