首頁  >  文章  >  後端開發  >  Centos下啟動apache出現錯誤

Centos下啟動apache出現錯誤

WBOY
WBOY原創
2016-09-30 09:37:311265瀏覽

/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 ``5.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 ``5.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套件管理的方式來安裝,自動載入依賴套件

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn