为了账号安全,请及时绑定邮箱和手机立即绑定

PHP5.3下加速器ZendGuardLoader安装及故障处理

标签:
PHP

相关软件包资料下载


How to Install & compile Zend Guard Loader


How to Install & compile Zend Guard Loader

The Zend Guard Loader runs PHP scripts that are encoded with Zend Guard. The Zend Guard Loader is a PHP extension that runs outputs created by  Zend Guard, which provides an easy way to encode, obfuscate and license  PHP code via an Eclipse-based interface or from the command line.
The Guard Loader extension must be installed on each Web server that  runs files that were encoded with, or use, Zend Guard licenses.

Quote:

Note:
You can also use the Zend Optimizer that also includes the Guard Loader  extension for code written in PHP 5.2. The Zend Optimizer is available  as a free download from PHP Web Application Server - PHP Development tools - PHP Training - Zend.com.

The Zend Guard Loader translates encoded files to a format that  can be parsed by the Zend Engine. This runtime process uses the Zend  engine as a trigger to start the Zend Guard Loader component. Zend Guard is a separate product available from Zend that provides an easy way to  encode, obfuscate and license PHP code via an Eclipse-based interface or from the command line. To view the API, click Zend Guard Loader.
To install it you need to follow the below mentioned steps:

Quote:

# wget http://downloads.zend.com/guard/5.5....23-i386.tar.gz
# tar -zxvf ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
# cp ZendGuardLoader-php-5.3-linux-glibc23-i386/php-5.3.x/ZendGuardLoader.so to /usr/local/lib/php

Now after that open php.ini file and put a

Quote:

zend_optimizer.optimization_level=15
zend_extension=/usr/local/lib/php/ZendGuardLoader.so

restart apache
php -v to check it will show as

Quote:

# php -v
PHP 5.3.8 (cli) (built: Oct 5 2011 18:13:49)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies

Thats it Done
Thanks and regards



+++++++++++++++++++++++++++++++++++++++++++++++++++

php-zend-guard-loader-5.5.0-3.el6.art.x86_64.rpm php-zend-guard-loader-5.5.0-3.el6.art.i686.rpm

http://hohoqi.blog.163.com/blog/static/10795561201181221249991/

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

64位的ZendGuardLoader

wget -c http://live.utoptoy.com/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz

tar zxvf ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz

cd ZendGuardLoader-php-5.3-linux-glibc23-x86_64/

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 div="" <="">

[Zend Guard Loader] 

zend_extension="/usr/local/zend/ZendGuardLoader.so"

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.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz 

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

That's all, THX.



+++++++++++++++++++++++++++++++++++++++++++++
CentOS安装php加速软件Zend Guardhttp://www.mouyao.com/archives/1928.html

说明:PHP5.3以上的版本不再支持Zend Optimizer,已经被全新的 Zend Guard Loader 取代,下面是安装Zend Guard具体步骤,以下操作均在终端命令行执行

关闭SELINUX
vi /etc/selinux/config
#SELINUX=enforcing       #注释掉
#SELINUXTYPE=targeted    #注释掉
SELINUX=disabled         #增加
:wq  保存,关闭
shutdown -r now   #重启系统
1、下载Zend Guardcd /home
wget http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz    #32位
wget http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz  #64位
2、安装Zend Guard
mkdir /usr/zend       #建立Zend Guard安装目录
tar xvfz ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz    #解压安装文件
cp ZendGuardLoader-php-5.3-linux-glibc23-i386/php-5.3.x/ZendGuardLoader.so     /usr/zend/   #拷贝文件到安装目录
rm -rf /home/ZendGuardLoader-php-5.3-linux-glibc23-i386*   #删除安装包

3、配置Zend Guard
cp  /etc/php.ini    /etc/php.inibak   #修改之前先备份
vi /etc/php.ini    #编辑文件
在最后位置添加以下内容
[Zend Guard]
zend_extension=/usr/zend/ZendGuardLoader.so
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
zend_loader.license_path=

4、重启web服务器
/etc/init.d/httpd restart
至此,Zend Guard安装完成。


+++++++++++++++++++++++++++++++++++++++++++++

RHEL6 下 LAMP配置 php5.3.6支持Zend Guard问题
http://zhidao.baidu.com/question/299490544.html

按照网上的教程 下载了 ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz和php-5.3.6.tar.gz 配置完成后 php是正常的 现在我要配置 zend的 mkdir -p /usr/local/zend mv ZendGuardLoader.so /usr/local/zend/ vi /usr/local/php/lib/php.ini 然后在php.ini 最后我也加入了 [zend] zend_optimizer_optimization_level=15 zend_extension=/usr/local/zend/ZendGuardLoader.so 但phpinfo(); 中 还是没有出现 zend的信息 请问这是怎么回事  还需要修改什么参数  请高手帮忙~~~~~~~

老兄让我来告诉你吧 我已经试验成功了  问题在编译httpd的时候  --with-mpm=prefork 这个必须这样设定 否则导致zend3.3.9 或 ZendGuardLoader无法加载 

点击查看更多内容
TA 点赞

若觉得本文不错,就分享一下吧!

评论

作者其他优质文章

正在加载中
  • 推荐
  • 评论
  • 收藏
  • 共同学习,写下你的评论
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
今天注册有机会得

100积分直接送

付费专栏免费学

大额优惠券免费领

立即参与 放弃机会
意见反馈 帮助中心 APP下载
官方微信

举报

0/150
提交
取消