Question
Restarting Apache Server - Ubuntu
I tried to restart
It says “Could not reliably determine the server’s fully qualified domain name. Using 127.0.0.1. Set the ‘Servername’ directive globally to suppress this message ”.
I haven’t pointed any domain to my IP yet. I am trying to restart apache is because of minor changes in php.ini file.
How can I restart apache2 successfully ? or How to make php.ini changes to work.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
service apache2 restart
will restart apache successfully on the majority of operating systems.this seemed to worked for me:
and then add this line:
save, exit, and then enable the conf
Thank you for this @enok