PHP5.3下加速器ZendGuardLoader安装 (LNMP/lnmpa)
由于Zend新产品ZendGuardLoader的面世,Zend Optimizer已经不支持php5.3了,官方给出的版本是ZendGuardLoader代替,ZendGuardLoader的安装还是和原版差不多的:
官方下载地址,需要登录 http://www.zend.com/products/guard/downloads
下面的版本是已经找出来的下载地址,能直接下载。
Windows 版本Zend Guard Loader下载
http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-Windows.zip
Linux 32位Zend Guard Loader 下载:
wget -c http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
Linux 64位Zend Guard Loader 下载:
wget -c http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz
tar zxvf ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz
mv ZendGuardLoader-php-5.3-linux-glibc23-x86_64 ZendGuardLoadercd ZendGuardLoader/mkdir -p /usr/local/zend/cp php-5.3.x/ZendGuardLoader.so /usr/local/zend/
下文的 php.ini 文件根据实际情况修改成你服务器上的路径
cat >>/usr/local/php/etc/php.ini<<EOF
[Zend Guard Loader]
zend_extension="/usr/local/zend/ZendGuardLoader.so"
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
zend_loader.license_path=
EOF
#结束后重启lnmpa
/root/lnmpa restart
在phpinfo 里能看到
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
出现 Zend Guard Loader v3.3 则说明安装成功。
BTW, 32位的ZendGuardLoader
wget -c http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
ZEND 官方网站上下载是要求登录的。如果上面的脚本下载不了,则登陆ZEND官网去下载。