|
|
tid=200php -v 看php版本' u8 V9 O; }) j
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220100525,NTS
/ k- I: g; [0 ~0 \$ ]/ v4 |) I/ n) G$ OPHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)
1 M9 N& K1 p7 B1 x* }Copyright (c) 1997-2014 The PHP Group
3 j5 H+ s8 k% k3 VZend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies5 k0 N7 G- t( w, L
X2 B/ e, D, c$ P5 j- G
check後 php5.3以上不支援 zend guard 與 optimizer
! v) _, L4 V( }# K3 h- M3 b0 @& E$ i0 f
google後發現 Zend Guard Loader支援 php5.3以上,所以 安裝 Zend Guard Loader ==>
; o% D$ f3 z% P* M2 fcd /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/, c2 t: V0 w5 ]
vi /etc/php.ini末尾增加: [zend.loader]zend_loader.enable=1zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so
+ Q+ e3 E- X. |- M/ s" K重啟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
6 H. r$ y% z: Y+ m好像有問題
$ S4 v3 o5 I( c$ u3 j
, t, ~1 ~; j( M. @) }
% R4 q5 z- f8 ^& j6 ?( v* J+ B所以取消執行 end Extension Manager ==>
8 {' ?5 u' l: C! B/ `8 C5 dvi /etc/php.ini
& U# ^% }. N. w- b將以下註解掉
4 n. P, F7 d+ \3 s;[Zend]
" r$ [4 y0 I4 l) s W- D* q# Z;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3( u: G( P2 Q5 N3 x `' ~
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
p c$ \. F' L8 m: o;zend_optimizer.version=3.3.3
- \, ^! e Z; _" k1 {;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
* k- I S8 I2 y# x& N9 ?2 Z;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
; `9 P4 O& ^' z3 |& g' k1 b3 b% S, j& ?+ a, F
;[Zend.loader] B1 F; D5 {; A" Q: e1 p% t c; [
;zend_loader.enable=16 {4 y# ~8 s3 Z L% q9 |) f: f
;zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so
7 s, z- k+ k: D. M T, N$ X3 V
$ w8 L( }' j4 Q1 Z* {. E7 T/ s$ s n0 h) a
/ u/ ^9 J# ^2 ^* }2 w G在重啟 httpd. `0 |6 y* G( k5 _3 e4 e
/ d+ [4 }1 Y" W
' P( _- {' G0 V1 ^& u: Z0 E
7 }3 N/ ^: ]2 F x
|
|