|
tid=200php -v 看php版本2 Y3 M4 R( n; E+ L
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220100525,NTS4 n8 d: b9 o! H
PHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)
: T; w: e; _5 M* ^Copyright (c) 1997-2014 The PHP Group
: C8 }. R# }& x1 }Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies: \2 r4 K/ z: J) L
$ ^# d7 M! ~. E/ _) r
check後 php5.3以上不支援 zend guard 與 optimizer! g$ X. v- X1 ?5 t4 i& K
- V2 }3 X" i8 n8 }3 cgoogle後發現 Zend Guard Loader支援 php5.3以上,所以 安裝 Zend Guard Loader ==>
: @* H9 X( c! E+ acd /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/
0 t. d% V6 v! t' cvi /etc/php.ini末尾增加: [zend.loader]zend_loader.enable=1zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so4 l# R$ Y2 B: {1 g7 |7 }! d
重啟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# p5 C1 _ {/ q% w; V
好像有問題
" `+ J6 z3 \2 p7 C
: X8 d5 q/ x9 d% h, }* R( d) A6 c2 g, |8 o- z
所以取消執行 end Extension Manager ==>
l# U4 z& J* f4 [, `vi /etc/php.ini2 J# Q- h) h0 j# e3 H/ T
將以下註解掉! o) e, N$ V# O5 {+ E
;[Zend]& K# R5 W5 _* W$ r/ F5 B6 k, T
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
1 ]5 E4 v1 z3 H# X# T;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
( k5 q: n5 O7 U( I& i c" I# o;zend_optimizer.version=3.3.3% J' o9 F) G* X! A7 }
;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so/ z7 z8 A6 k: @2 {, u7 l, P( J
;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so" E3 D j4 O( D. r/ h
/ w: q. ^/ `, |
;[Zend.loader]
4 M. ^8 n r3 x% P2 @;zend_loader.enable=1
1 c+ X9 X8 }7 S, \0 e& p) z;zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so6 A! y" ^1 U9 y0 s* R6 j
3 |+ j# W6 W& z- V u- B! }
7 } E1 {, j- m' X: v. Q7 u# K5 f在重啟 httpd' P7 D. m" }* Y! v1 H# _1 u$ |
8 U1 H0 U) m8 X
$ l# u2 a, P/ L' u
) R* L2 T- a: }* h) R) K* O |
|