PHP5.3下加速器ZendGuardLoader安装

来源:互联网 发布:301重定向域名会变么 编辑:程序博客网 时间:2024/04/30 20:58

相关软件
包资料下载


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<

[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/zendmv ZendGuardLoader.so /usr/local/zend/vi /usr/local/php/lib/php.ini然后在php.ini 最后我也加入了[zend]zend_optimizer_optimization_level=15zend_extension=/usr/local/zend/ZendGuardLoader.so但phpinfo(); 中 还是没有出现 zend的信息 请问这是怎么回事 还需要修改什么参数 请高手帮忙~~~~~~~


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


<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(10300) | 评论(1) | 转发(1) |
0

上一篇:精通initramfs构建step by step

下一篇:我国主机遭境外控制激增近80%

相关热门文章
  • 怎么上Google官网?怎么注册谷...
  • SMT贴片编程FLEXA软件
  • 教你怎么注册Gmail邮箱....
  • varnish -----HTTP加速器简单...
  • 解析【能猴加速器】中国上不去...
  • 关于SSI
  • IP Sec VPN与NAT破镜重圆
  • JS模拟鼠标自动点击
  • UT2.0正式版下载
  • tomcat6.0配置(含配置视频下载...
  • linux dhcp peizhi roc
  • 关于Unix文件的软链接
  • 求教这个命令什么意思,我是新...
  • sed -e "/grep/d" 是什么意思...
  • 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~

dzminglong2014-03-13 21:06:25

我没装apache,我安装的nginx,也是出现了Failed loading /usr/local/php/lib/php/extensions/ZendGuardLoader.so:  /usr/local/php/lib/php/extensions/ZendGuardLoader.so: undefined symbol: compiler_globals,请问,有解决办法吗?

回复 | 举报
原创粉丝点击