Home >Backend Development >PHP Tutorial >An error occurred when starting apache under Centos
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
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