|
tid=200&#php -v 看php版本
, r+ f2 T5 h: ^6 _; ACannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220100525,NTS
7 z. D! s" f* z" d: ~3 h2 ]! @PHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)) |, l$ p+ R: T+ Y+ N4 f7 }, E6 i
Copyright (c) 1997-2014 The PHP Group' z& x7 Z) E$ v& Y
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies8 i4 M3 P0 T* ^4 w
# b" v/ U( y6 @' K1 n! j+ C
check後 php5.3以上不支援 zend guard 與 optimizer: U* g( k8 G% i6 U- t
6 h, |6 P4 ^" H; B- U
google後發現 Zend Guard Loader支援 php5.3以上,所以 安裝 Zend Guard Loader ==>
1 p/ D& l# `# \# Ccd /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/
0 h8 {! c0 s% E/ T' R6 b: Rvi /etc/php.ini末尾增加: [zend.loader]zend_loader.enable=1zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so. {0 I/ ]( y1 ]. R+ H- r" ]
重啟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 Technologies
: j* W! n: b2 @, d. m2 G好像有問題3 o- u. r/ {* w( d) ?
% ]! R/ v( h7 s# z' a
3 k/ `; {* v; {' D1 b$ Z/ u8 h
所以取消執行 end Extension Manager ==>
+ d; w U9 a7 `% s% h0 \) Vvi /etc/php.ini6 c, ?5 v4 H$ r: B- C
將以下註解掉
6 o- _/ W i4 C5 J* s" z8 U+ K;[Zend]
0 x0 w k+ U5 L6 h;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3' A& [0 ^$ F9 ~
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
2 d6 a, o0 x" J2 s$ x;zend_optimizer.version=3.3.3
) a$ }5 ?7 F. |5 P2 r# N% K* ^;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so" ?6 Q" p0 K; |
;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so( V4 N9 A! ^: k5 Y3 G( R
1 N/ Y ?& F" G1 ]$ p" ^;[Zend.loader], h2 N) }; o1 r; q, [
;zend_loader.enable=1( i4 }6 _+ w( z/ _* d0 c
;zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so. g; g- B) A5 n0 a: G
* F6 @9 h N. q% R
1 j" ?) v% L5 V- ` C
在重啟 httpd
+ }6 h' Q6 ^ {2 x1 I
: a* `& U. Y, c" J& d& n7 @- e& ~$ C+ P
2 Y& h) n8 V# j4 h$ ?* w |
|