|
|
tid=200php -v 看php版本9 o) G1 n% \5 V
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220100525,NTS
! U' f* O8 J# t. H$ sPHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)
2 N+ ~! G' q7 _, Q6 i, T1 R2 NCopyright (c) 1997-2014 The PHP Group& s2 U: G& M8 Y/ t# x
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
: O$ \" L6 F* G7 I& f
' u" S: r8 @- Acheck後 php5.3以上不支援 zend guard 與 optimizer# Y: B2 k! p/ f6 @9 w2 J
0 k0 I: s' c* y3 d
google後發現 Zend Guard Loader支援 php5.3以上,所以 安裝 Zend Guard Loader ==>8 j/ b4 F" ?7 S& k$ T d: \
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/" r, A! {& \: U- C2 I
vi /etc/php.ini末尾增加: [zend.loader]zend_loader.enable=1zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so+ ~! g1 d* W' h, j
重啟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! X4 @9 W5 a6 W# i% o& E
好像有問題
9 i I8 r2 A8 p0 \; m* g+ @& _* E7 t$ q3 K6 V u0 }
, c. \2 q$ j& ^5 K6 |, ?; Z
所以取消執行 end Extension Manager ==>
' d6 e3 W8 g8 {: R# Uvi /etc/php.ini7 c( G. P' w- C. o/ I/ d
將以下註解掉
h! J ]) I1 L1 N;[Zend]
. l( c/ x1 o4 m' M# Q" b- P;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3# ]9 q' c( a$ i' d1 K! n7 c
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.35 q: |) R k5 Y/ o
;zend_optimizer.version=3.3.3
9 v1 Z+ g$ N; c1 M" A7 `;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
1 m" Q. {% r& H* j5 y8 J, f;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so# B# w5 a t2 G$ R+ Q7 t S) G
; @+ U* P8 ~/ A- w
;[Zend.loader]: h4 ?0 o% Q9 s+ A |) a! I
;zend_loader.enable=1* E9 J# k/ _; }* K
;zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so+ W* C, B: |# z% I5 ^3 n7 Z+ w
n0 C6 l1 \5 v' P; [' d# a; C( q4 s3 g2 R4 U3 n
在重啟 httpd; N+ u( q8 c5 i8 X: q a7 a, ?- Q2 o
, ~$ d* J. L' Z- m2 K# ]; \: V' O
8 t+ _6 z' N/ a# h+ l" @( u9 L: o$ Q
|
|