I'm setting up an HTTPS server on an Ubuntu 10.04 LTS Server.
After configuring everything, when I try to start the server I get:
root@dns2:/etc/apache2# /etc/init.d/apache2 start
* Starting web server apache2
apache2: Syntax error on line 204 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/ssl.load: Permission denied
...fail!
The relevant line 204 in apache2.conf is Include /etc/apache2/mods-enabled/*.load
mods-enabled (soft-links to mods-available as per standard):
root@dns2:/etc/apache2# ls -l mods-enabled
total 0
<stuff>
lrwxrwxrwx 1 root root 26 2011-06-17 16:24 ssl.conf -> ../mods-available/ssl.conf
lrwxrwxrwx 1 root root 26 2011-06-17 16:24 ssl.load -> ../mods-available/ssl.load
<stuff>
mods-available:
-rw-r--r-- 1 root root 2412 2010-11-18 13:18 ssl.conf
-rw-r--r-- 1 root root 58 2010-11-18 13:18 ssl.load
I can't see any reason why this error comes up. I am utterly confounded. Any ideas?
EDIT: sites-available and sites-enabled directory permissions
drwxr-xr-x 2 root root 4096 2011-06-17 16:36 sites-available
drwxr-xr-x 2 root root 4096 2011-06-17 16:28 sites-enabled
EDIT2: I tried disabling the ssl module and starting apache:
root@dns2:/etc/apache2# a2dismod ssl
Module ssl disabled.
Run '/etc/init.d/apache2 restart' to activate new configuration!
root@dns2:/etc/apache2# /etc/init.d/apache2 start
* Starting web server apache2
apache2: Syntax error on line 236 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/000-default-ssl: Permission denied
...fail!
000-default-ssl points to the default ssl virtual host config file. Again, all permissions are right. After removing 000-default-ssl, apache starts normally. Obviously, since now it's back to the default configuration...
mods-enabled
and themods-available
directories?