|
|
tid=200php -v 看php版本* C# ^1 \7 H4 c! f* ~# O# ]
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220100525,NTS
. e# g0 x9 i9 }0 ]3 G& ]% y6 |PHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)% |. b8 d2 P/ g# [/ w6 \' |9 l
Copyright (c) 1997-2014 The PHP Group' L" |2 b+ T' p% `3 _7 K- c
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
% ~4 ?1 J4 ?- G2 b5 L5 [3 k
6 j! \3 A; z. U% V0 ucheck後 php5.3以上不支援 zend guard 與 optimizer9 V k, M7 \5 Y. w- A
4 x2 v& M) ^% ~3 i
google後發現 Zend Guard Loader支援 php5.3以上,所以 安裝 Zend Guard Loader ==>
( p4 {" C% n( M! R: p, ?, ^cd /usr/local/srcwget http://downloads.zend.com/guard/ ... 23-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/3 j; W& {4 ~0 o0 e0 T: `, g0 I
vi /etc/php.ini末尾增加: [zend.loader]zend_loader.enable=1zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so
: }1 V7 a# M. X重啟http service 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 Technologies2 K. o1 h" q# M4 r
好像有問題+ e: d# X+ T5 g* I8 B( k
2 Y$ M# J; A+ b3 Q. I2 K
5 c( L0 _# I" k1 c2 O5 a3 q所以取消執行 end Extension Manager ==>
( z1 g0 B! R% C8 {3 G% K. Dvi /etc/php.ini0 X+ `6 k& U: x& C( K2 d% Y
將以下註解掉# }2 ?/ f# ^* k: g6 y
;[Zend]+ _* _* ~. ]# b6 n
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.32 V6 j% c& s2 C5 i
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
; ^" ^# S3 Z' L% g8 U;zend_optimizer.version=3.3.3
. ^( {" s1 C* c4 {;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so) K: Q: E' d& V6 `2 I
;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
5 \" @4 Y4 {5 e/ d" s
& ^3 f g' H* q$ ];[Zend.loader]
& O' W# q* E0 I9 F0 q;zend_loader.enable=1
" _- r* e9 V, k- V* Y5 u;zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so
/ p- ]& S: a0 I5 h( w2 Z E1 _7 W
; [0 |1 ]$ P9 B- Z& y% J1 S9 @3 a+ n) N
在重啟 httpd0 t- A+ S- Q. f. j
* r# I' N' n( |) d+ x! V/ T, S+ f5 b7 O$ p+ t7 S: F4 m% ?' [5 f
! Q7 |) j: }- R7 c9 g |
|