- 05:13:00
- Unknown
1.Add ServerName localhost as the last line in /etc/apache2/apache2.conf file.
2.Create a file named /etc/apache2/conf-available/servername.conf and add the string ServerName localhost inside and save it. Create a soft link under /etc/apache2/conf-enabled as follows
ln -s /etc/apache2/conf-available/servername.conf .
# or
a2enconf servername
and restart the server.
~$ sudo service apache2 restart