欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

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

程序员文章站 2022-04-23 23:42:14
...
在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

相关标签: php apache