|
|
tid=200php -v 看php版本
5 @& G. _ m/ C3 N y4 MCannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220100525,NTS& d( n( X: {- |. _1 b: r. V! |; A
PHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)
8 W& O+ T$ _: x' m F: z% _Copyright (c) 1997-2014 The PHP Group
2 M! N4 b! ~5 d5 nZend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
) x4 ?* l5 b+ O4 t* L0 T( u; }, T0 [' f [
check後 php5.3以上不支援 zend guard 與 optimizer- q! a7 T2 N" [! f& I
2 p5 B! ?3 W" W) g1 |6 Z4 J+ ^google後發現 Zend Guard Loader支援 php5.3以上,所以 安裝 Zend Guard Loader ==>
) M2 d* A$ a) T3 d) q- y# ocd /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/
; [, |2 E1 H4 Bvi /etc/php.ini末尾增加: [zend.loader]zend_loader.enable=1zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so
& ?( J. p. G6 P p: g1 z重啟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
2 ]3 ~5 c# N5 b+ V) f& J好像有問題
# l5 O2 A# m# Z0 N0 I/ ?
7 ~; K; ~2 j, [/ ~! M" S e# ` C9 k( X" k+ p
所以取消執行 end Extension Manager ==>
6 r) x- V5 G( p' v/ Nvi /etc/php.ini- a$ `" `. n3 n2 ^. D
將以下註解掉 ?% a+ H4 k( ^ t& n
;[Zend]
5 ?( n/ R1 R: S, h( p9 };zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3; L! I! t6 B" y( q, A* p5 P6 C
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.36 Q) z# x% k. K
;zend_optimizer.version=3.3.3
& s1 Y& a; y! }5 C; K5 H;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
% a+ e! r7 k% c% a6 o4 P; J% |;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so- c2 W2 T$ N$ a# }
X$ P3 k' l1 T2 o6 c
;[Zend.loader]# P% T0 l' z$ o
;zend_loader.enable=1
% I$ X; W9 J: Q' p8 X, N0 X;zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so
" f' B# {, a+ Y/ t. }2 j# T# S* f( v5 R9 { D+ E( x) V3 D
. V+ E# x4 k! }" E在重啟 httpd E. S7 K& c# M
! [. K& w% F, q4 I2 B: b# T% Q0 b' h8 R' M+ [ `# A
% W/ R' T: h( U* L$ K
|
|