Reputation: 1631
The "a2ensite""a2dissite" are not working
Echo:
ERROR: Site XXXXXX does not exist!
I swear it exists in sites-available folder.
After I typed a2ensite
and double clicked the Tab button, it shows the /root
directory.
There must be something wrong with the a2en/dissite script.
How can I make it back to work?
===================== Here are the last lines of the error log:
[Sun Aug 04 22:59:31.406192 2013] [mpm_event:notice] [pid 5378:tid 140459282536256] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
[Sun Aug 04 22:59:31.406433 2013] [core:notice] [pid 5378:tid 140459282536256] AH00094: Command line: '/usr/sbin/apache2'
[Sun Aug 04 23:09:44.648984 2013] [mpm_event:notice] [pid 5378:tid 140459282536256] AH00491: caught SIGTERM, shutting down
[Sun Aug 04 23:09:46.001182 2013] [mpm_event:notice] [pid 5692:tid 139671144335168] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
[Sun Aug 04 23:09:46.001490 2013] [core:notice] [pid 5692:tid 139671144335168] AH00094: Command line: '/usr/sbin/apache2'
Upvotes: 21
Views: 39349
Reputation: 356
Renaming site configuration files in /etc/apache2/sites-available/*
into *.conf
helped.
Example, when enabling site dummy.com
, configuration file must be named dummy.com.conf
.
Upvotes: 34
Reputation: 18321
Another solution is to change this line in /etc/apache2/apache2.conf
from:
IncludeOptional sites-enabled/*.conf
to:
IncludeOptional sites-enabled/*
Upvotes: 14