1. 程式人生 > 程式設計 >如何解決php-fpm啟動不了問題

如何解決php-fpm啟動不了問題

1、重新下載一個64位的“ZendGuardLoader.so”。

2、將其放到“/usr/local/zend/”下。

3、重新執行“lamp -fpm start”即可。

修復步驟

用file命令檢視當前的ZendGuardLoader.so的檔案資訊,可以看到當前so檔案為32位的檔案。

test@ubuntu:/usr/local/zend$ file ZendGuardLoader.so
ZendGuardLoader.so: ELF 32-bit LSB shared object,Intel 80386,version 1 (SYSV),dynamically linked,stripped

下載解壓64位的ZendGuardLoader,然後替換原來的.so文http://www.cppcns.com件之後重新啟動php-fpm

wget http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3--glibc23-x86_64.tar.gz
tar -xvf ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz
 
cp ZendGuardLoader-php-5.3-linux-glibc23-x86_64/php-5.3.x/ZendGuardLoader.so /usr/local/zend/

重新用file看下替換之後的ZendGuardLoader.so,可以看到當前為64位的檔案了。

test@ubuntu:/usr/local/zend$ file ZendGuardLoader.so
ZendGuardLoader.so: ELF 64-bit LSB shared object,xwww.cppcns.com86-64,stripped

到此這篇關於如何解決php-fpm啟動不了問題的文章就介紹到這了,更多相關php-fpm啟動不了的解決辦法內容請搜尋我們以前的文章或繼續瀏覽下面的相關文章希望http://www.cppcns.com大家以後多多支援我們!