coav4u 發表於 2015-1-9 19:02:35

20150109-- Cannot load Zend Extension Manager -

#php -v   看php版本
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220100525,NTS
PHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

check後 php5.3以上不支援 zend guard 與 optimizer

google後發現 Zend Guard Loader支援 php5.3以上,所以 安裝 Zend Guard Loader ==>
cd /usr/local/srcwget http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gztar zxvf ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gzcd /usr/local/src/ZendGuardLoader-php-5.3-linux-glibc23-x86_64/php-5.3.xcp ZendGuardLoader.so /usr/lib64/php/modules/
vi /etc/php.ini末尾增加:zend_loader.enable=1zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so
重啟httpservice httpd restartphp -vZend Guard Loader requires Zend Engine API version 220090626.The Zend Engine API version 220100525 which is installed, is newer.Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader.PHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)Copyright (c) 1997-2014 The PHP GroupZend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
好像有問題


所以取消執行 end Extension Manager ==>
vi /etc/php.ini
將以下註解掉
;
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
;zend_optimizer.version=3.3.3
;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

;
;zend_loader.enable=1
;zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so


在重啟 httpd



頁: [1]
查看完整版本: 20150109-- Cannot load Zend Extension Manager -