首页 >后端开发 >php教程 >apache里面的mod_authz_default.so不存在怎么解决

apache里面的mod_authz_default.so不存在怎么解决

WBOY
WBOY原创
2016-06-06 20:27:151498浏览

在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

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn