Heim  >  Artikel  >  Backend-Entwicklung  >  Centos下启动apache出现错误

Centos下启动apache出现错误

WBOY
WBOYOriginal
2016-09-30 09:37:311216Durchsuche

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn