This question already has an answer here:

After update my php got the error:

The apache2 configtest failed. Output of config test was:

apache2: Syntax error on line 140 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.

Although I have installed Server version: Apache/2.4.16 (Ubuntu)

marked as duplicate by user9517, mdpc, HBruijn Jan 14 '16 at 14:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Apache 2.4 was released after 12.04 LTS and so isn't a package in that version of Ubuntu. How did you install Apache 2.4? – tudor Jan 12 '16 at 23:47

The error message is quite clear, one of the modules is missing.

/usr/lib/apache2/modules/mod_authz_default.so: No such file or directory

See these similar posts for solutions:

Can't access website or restart apache2 server

Quoting @Benoit from that accepted answer:

It's look like you have the file to load mod_authz_default but not the library itself (the file with the .so extension). If you don't need this functionality you should go to your /etc/apache2/mods-enabled directory and delete mod_authz_default.load that should be a symlink to a file of the same name in the /etc/apache2/mods-available/ directory.



Chances are you also upgraded Apache from 2.2 to 2.4, which requires a lot of work to make it fly again:


  • Sure @Iain, done. Which of course makes the question a duplicate now I found it for the original poster. – JayMcTee Jan 12 '16 at 20:12
  • If I's a duplicate then post a link under the question and someone will likely come along and vote it as such. IRC as you have <3k rep you can flag as dupe too. – user9517 Jan 12 '16 at 20:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.