Bug #1023
apache2 does not restart cleanly
Status:
New
Priority:
Normal
Assignee:
-
Category:
ubuntu
Target version:
-
Start date:
04/03/2013
Due date:
% Done:
0%
Description
On a new install of Amahi on Ubuntu 12.04.2 (is this a supported scenario?), running:
sudo service apache2 restart
causes the following output:
* Restarting web server htcacheclean apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [Wed Apr 03 11:53:57 2013] [warn] NameVirtualHost *:80 has no VirtualHosts [Wed Apr 03 11:53:57 2013] [warn] NameVirtualHost *:80 has no VirtualHosts ... waiting /var/lock/apache2 already exists but is not a directory owned by apache. Please fix manually. Aborting. [fail]
The workaround I've found is to:
sudo rm -R /var/lock/apache2 sudo service apache2 start
Weirdly, both while apache is stopped and after it is running again, ls -la /var/lock
shows
drwxr-xr-x 2 www-data root 40 Apr 3 12:00 apache2/
Also available in: Atom