当前位置:Gxlcms > PHP教程 > Centos下启动apache出现错误

Centos下启动apache出现错误

时间:2021-07-01 10:21:17 帮助过:2人阅读

/usr/local/apache2/bin/apachectl restart

提示错误:
httpd: Syntax error on line 58 of /etc/httpd/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /lib64/libz.so.1: version `ZLIB_1.2.3.4' not found (required by /usr/local/libpng/lib/libpng16.so.16)
请问各路大神,这个要怎么解决呀!谢谢

回复内容:

/usr/local/apache2/bin/apachectl restart

提示错误:
httpd: Syntax error on line 58 of /etc/httpd/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /lib64/libz.so.1: version `ZLIB_1.2.3.4' not found (required by /usr/local/libpng/lib/libpng16.so.16)
请问各路大神,这个要怎么解决呀!谢谢

重装apache会比较快解决,你之前用的是源码编译安装吗?如果是的,可以使用yum install包管理的方式来安装,自动加载依赖包

人气教程排行