Ubuntu 14.04 upgrade broke Apache2

12

0

I just upgraded to ubuntu 14.04 and now apache2 won't start, I get the error:

root@dennisHome:~# /etc/init.d/apache2 restart
* Restarting web server apache2
...fail!
* The apache2 configtest failed.

Output of config test was:

apache2: Syntax error on line 244 of /etc/apache2/apache2.conf: 
Syntax error on line 1 of /etc/apache2/mods-enabled/authz_default.load: Cannot load       /usr/lib/apache2/modules/mod_authz_default.so into server: 
/usr/lib/apache2/modules/mod_authz_default.so: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information

It looks like mod_authz_default.so is not there anymore, what do I do to fix this issue?

Dennis Kerrisk

Posted 2014-04-24T11:13:46.047

Reputation: 277

I would save your apache configuration and install Apache again. – Ramhound – 2014-04-24T12:15:59.100

Answers

14

In moving up to Ubuntu 14.04, you are also passing to Apache 2.4 (from, presumably, 2.2). This is not a trivial change, you can find here the list of adjustments this requires. You will see there is some work to do. In particular, the page states (among other things):

These modules have been removed: mod_authn_default, mod_authz_default, mod_mem_cache.

That's why you get the error message above. You may try commenting out the offending line, 244 of apache.conf, and see whether your system can get by this way (but I doubt it).

MariusMatutiae

Posted 2014-04-24T11:13:46.047

Reputation: 41 321

1

If you have your modules loading automatically from the mods-enabled directory then the offending line is likely in this section of your conf file:

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

In this case you will need to go to your mods-enabled directory (/etc/apache2/mods-enabled by default) and remove the symlink for the authz_default.load file.

This is because the symlink in mods-enabled will be pointing to a file in mods-available that no longer exists in Apache 2.4.

rooby

Posted 2014-04-24T11:13:46.047

Reputation: 111