I am trying to install amp on ubuntu using this tutorial. How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 16.04
On the apache part of the tutorial it says the following: Set Global ServerName to Suppress Syntax Warnings Next, we will add a single line to the /etc/apache2/apache2.conf file to suppress a warning message. I can't find such a directory on the system. I have installed apache, but can't find any file of the sort.
Thanks for reading.
/etc/apache2/apache2.conf
from Ubuntu 16.04. To suppress the above warning message, you need to add the directiveServerName localhost
at the bottom of the file (or change localhost with some concrete FDQN). Just typesudo nano /etc/apache2/apache2.conf
, paste the conten of the above link byshift+insert
, save and exit byctrl+o
/ctrl+x
. Then restart Apache:sudo systemctl restart apache2.service
. Could you edit your question with the output ofls -l /etc/apache2/
? – pa4080 Jul 20 '17 at 07:25