分享

PHP5.3下加速器ZendGuardLoader安装 (LNMP/lnmpa)

 NaturalWill 2015-05-02
由于Zend新产品ZendGuardLoader的面世,Zend Optimizer已经不支持php5.3了,官方给出的版本是ZendGuardLoader代替,ZendGuardLoader的安装还是和原版差不多的:

官方下载地址,需要登录 http://www./products/guard/downloads

下面的版本是已经找出来的下载地址,能直接下载。

Windows 版本Zend Guard Loader下载
http://downloads./guard/5.5.0/ZendGuardLoader-php-5.3-Windows.zip 

Linux 32位Zend Guard Loader 下载
wget -c http://downloads./guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz 

Linux 64位Zend Guard Loader 下载
wget -c http://downloads./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 ZendGuardLoader
cd 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 Guard Loader v3.3  则说明安装成功。

BTW, 32位的ZendGuardLoader
wget -c http://downloads./guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz 

ZEND 官方网站上下载是要求登录的。如果上面的脚本下载不了,则登陆ZEND官网去下载。

That's all, THX.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多