|
|
#php -v 看php版本& M- M% Q. z$ o# M
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220100525,NTS
: g" L' t9 \6 KPHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)
7 ?4 t, @# l1 a8 QCopyright (c) 1997-2014 The PHP Group
, N: ^/ S, S$ g2 V9 O: N) J5 UZend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
: V6 v2 s/ u1 T' M
0 w2 V. b7 O' ]! F) ] ccheck後 php5.3以上不支援 zend guard 與 optimizer
( x2 e4 L" A3 b9 ~9 q8 g. A
; `) e2 `9 t" k# ^google後發現 Zend Guard Loader支援 php5.3以上,所以 安裝 Zend Guard Loader ==>' ?$ u/ g$ d: J! B j4 H0 G
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/& R6 [0 @2 `; p0 n: U! [8 d
vi /etc/php.ini末尾增加: [zend.loader]zend_loader.enable=1zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so+ r u3 J4 V5 Q3 `5 D, h
重啟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% b0 n* U0 ?8 i
好像有問題$ c' S, X+ A& X! }4 L& M, }
( G" {: K0 M; n1 k7 w y
/ Q9 t, J) u; b7 l' z所以取消執行 end Extension Manager ==>/ h6 a; j' a( `
vi /etc/php.ini1 Z% c* `% r; f7 I5 `9 i
將以下註解掉
: z: P; N4 X* E9 _. v* Y;[Zend]4 `( T- H& Y7 X
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3! g6 l( q; c% O. g. C5 H4 p" Z6 c
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3, c" ?6 l$ l6 a% G" @& |# A
;zend_optimizer.version=3.3.3( l9 u% a2 [# a* e: A }
;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so" p( w! Z) w! ^7 j' K) K# ?
;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so0 r& C' h4 r. v8 [+ ^( b" I
! k! M, k) v4 y0 d( I* f- Z* a* j% l
;[Zend.loader]) X. @' X% @/ n, U7 `
;zend_loader.enable=1! U4 u) Q# m5 l# p: t# Y
;zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so2 M* m9 i# K0 J
2 H1 r. l' a+ d7 { [; s6 C! X! n9 v9 s7 ]! O3 X, B
在重啟 httpd3 t6 {/ @& N8 }& C$ e" f
5 v& ^4 K# Z- @; q, |+ _$ y7 S
& j& _0 H' Y; l3 L K" ~0 Q( e5 L, a4 H; x
|
|
|