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

Centos下启动apache出现错误

程序员文章站 2022-05-11 21:44:19
...

/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包管理的方式来安装,自动加载依赖包

相关标签: linux apache php