|
|
tid=200php -v 看php版本/ c4 \9 U9 b1 i
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220100525,NTS5 H- ^6 d) b( V9 f% W9 y' z
PHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)
" ]2 X4 d0 P0 G0 s- F$ [1 G9 XCopyright (c) 1997-2014 The PHP Group
1 l. K2 T! J, [- G- ?( gZend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies3 @$ [" E' B0 w, z' r
; ]2 |# P; ~0 w& S" U/ \. k5 `' }( icheck後 php5.3以上不支援 zend guard 與 optimizer( D2 Z. I2 ~5 ~( g8 v5 F; e t
" `, ?8 a( r" X
google後發現 Zend Guard Loader支援 php5.3以上,所以 安裝 Zend Guard Loader ==>
" Z' M* r8 j7 y. s" ~. f- 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/
2 q) Z R+ a2 Y) B# S$ svi /etc/php.ini末尾增加: [zend.loader]zend_loader.enable=1zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so
5 q4 ?- m% h& f, G重啟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
. Z3 m- Q: y) H+ v ] g好像有問題
4 i. I) O5 n; ?
+ b2 ]8 {0 H5 C* n
, X: x$ b( ^) a' m# H5 k所以取消執行 end Extension Manager ==>
8 j7 G( T1 U% y6 ~. ^vi /etc/php.ini
7 j3 s$ M" |3 s7 C6 _0 F將以下註解掉' {$ T7 j7 H' x. c
;[Zend], ?2 `1 {% w' e' }+ F% {4 K! Z" B
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3# R+ z5 n6 f; J3 D0 o
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
# q; Q# g6 z: o;zend_optimizer.version=3.3.3
1 Q8 ], O$ F5 E. v2 D7 _/ s;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
9 T# q$ g! \1 C% Q;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so6 w e9 u5 P- M ^3 f& e( ^4 K
3 v W# }- G% X; M: Q- N3 s;[Zend.loader]6 A& i2 U* V8 x- G, N0 K9 m
;zend_loader.enable=1
+ J, w: e/ f0 J1 e;zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so+ N3 U: b0 D. \; ?% w- c
. Y7 ]4 `7 R# V0 `5 N3 D W4 r# Q3 d5 a) m! X. n( j: G
在重啟 httpd
7 o) O. i$ e6 x/ @2 ~' L) c6 I+ Z+ j: L3 W8 U9 l3 @6 s# c, }" {
! S2 ~ _5 m7 M3 W3 p$ r
6 R% ?0 t7 \/ Q, b* Y/ M2 c6 o% p |
|