Home >Backend Development >PHP Tutorial >An error occurred when starting apache under Centos

An error occurred when starting apache under Centos

WBOY
WBOYOriginal
2016-09-30 09:37:311272browse

/usr/local/apache2/bin/apachectl restart

Error prompt:
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)
Please ask the experts how to solve this! Thank you

Reply content:

/usr/local/apache2/bin/apachectl restart

Error prompt:
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)
Please ask the experts how to solve this! Thank you

Reinstalling apache will solve the problem faster. Did you use source code to compile and install it before? If yes, you can use yum install package management to install and automatically load dependent packages

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn