|
tid=200php -v 看php版本2 d" h% l* o3 q: m7 h2 D# x
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220100525,NTS( L* N- l5 m) A4 Z9 I
PHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)
, g+ _7 K# S/ G" G6 v( T% FCopyright (c) 1997-2014 The PHP Group6 O/ S" _& W2 k5 Q. I# v
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies3 w, z# v& B W* P
7 `# K1 f# q! ~; M: c; Y) }
check後 php5.3以上不支援 zend guard 與 optimizer/ K9 n' X) |8 k. r7 }
3 h+ h: j: s* z9 n2 n) lgoogle後發現 Zend Guard Loader支援 php5.3以上,所以 安裝 Zend Guard Loader ==>. }2 h6 f4 v: ~/ I
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/
9 j8 i5 o" k; G& [3 g& R2 i; `2 kvi /etc/php.ini末尾增加: [zend.loader]zend_loader.enable=1zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so8 k/ N; ]2 [5 U( ]/ B- ~
重啟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, [( D2 p( l+ v5 r* q2 Y4 d' \
好像有問題
4 c4 L4 B) X& ]1 I8 ?
v) g! z/ L& l( x+ K4 X
5 `, a- R; d. v$ m& b所以取消執行 end Extension Manager ==>
) x# i; {9 C; e' {# n0 d' b3 xvi /etc/php.ini6 } v8 M; Y' m1 W0 Y, |+ ~
將以下註解掉# r: [! n. |9 k# }/ h! z
;[Zend]
% z6 l/ G2 b2 G;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
}1 p8 O$ U* t1 G* O;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3( n8 P; u, F3 U
;zend_optimizer.version=3.3.3! n$ D- @4 o; r
;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so5 s! \+ c" `2 |8 e7 ^) s$ X
;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
+ [, Y- G1 f* g+ }
7 W; B7 B- |# h3 }+ G;[Zend.loader]
% g! {1 V3 `( d;zend_loader.enable=1
3 H" U. W, f% x8 G$ k;zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so
# K+ X- l) Z# {! L* ]+ O; k0 {; T5 f+ @* F# I' `
: x, p6 n/ A/ G7 H4 Q在重啟 httpd
- w8 X% ?4 [' F7 `$ V) W% X. v
. e, L* ]3 \4 C8 T2 V6 c$ F8 p* X+ i
% N6 T) m7 F( I% Q# L' q4 ]
|
|