在unbuntu執行php5.3升級到5.5後,apache出現錯誤
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.
The Apache error log may have more information.
回複內容:
在unbuntu執行php5.3升級到5.5後,apache出現錯誤
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.
The Apache error log may have more information.
這和PHP無關,就是apache 2.4中,這個模組被移除了,如果你不需要的話,可以設定檔裡面刪除對應的行
包括這三個模組mod_authz_default
, mod_authn_default
, mod_mem_cache