|
#php -v 看php版本
3 k. e r A3 l9 H5 h7 [! |Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220100525,NTS
8 Y6 ~* ?1 a! vPHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)
0 j2 ~& M0 O8 z+ ^Copyright (c) 1997-2014 The PHP Group
' M1 q o/ `. s, g$ Y! UZend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
4 z' Z- `9 Z. G A
% j+ o( q9 j0 m' q8 v: Dcheck後 php5.3以上不支援 zend guard 與 optimizer1 F8 `5 f2 h) _8 o( V
- ~& u5 a2 x; n2 S' _google後發現 Zend Guard Loader支援 php5.3以上,所以 安裝 Zend Guard Loader ==>
' r7 W. A# ]5 l" _! Z& f7 Kcd /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/
/ M2 v; _% z2 P( {2 n7 N$ avi /etc/php.ini末尾增加: [zend.loader]zend_loader.enable=1zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so$ F. o2 @. r0 V
重啟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% X% v. a' B4 D4 F
好像有問題8 a1 ~& d8 ~, D7 p
2 P$ ?3 U0 K* \
# H$ a2 j/ k0 U0 R2 B所以取消執行 end Extension Manager ==>
6 J: z; X% R; B' m( b1 c5 W, lvi /etc/php.ini; _: k2 n$ f3 m' p& E# Y$ M
將以下註解掉0 a3 q" _5 }& ^0 \) C8 n
;[Zend]+ O: G8 V* l7 r) K0 c6 \" ~
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.31 h4 M5 `. G3 G: A
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
; z( _. i# F$ W! \; B. s% B' x$ Z" X;zend_optimizer.version=3.3.32 k8 R% ~, D' Y' F; l
;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
! D# j* r/ S' t$ X& S1 B;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so3 c, _- \( b4 K) s5 n+ D/ f1 n
4 P9 r; O) ?5 C2 g/ w" L;[Zend.loader]: I8 M4 d. |/ G, p# K! p9 l( k) p
;zend_loader.enable=1
4 i. C' A( B& V- l0 m;zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so( j4 L M2 r, u2 s% K
7 w' f2 R) m+ K1 g2 @8 W- j( i! X7 e+ f8 e5 _2 @ |9 u3 b
在重啟 httpd
0 v! x3 Z5 f+ U+ d
% x$ f6 J2 m2 D4 E# o, K* d2 ` l M5 I5 B6 W" I9 G. l
, P% \9 k# ^# |+ c A$ d |
|
-->
|