六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 696|回复: 0

php5.3安装Zend Guard Loader

[复制链接]
 楼主| 发表于 2015-2-10 13:52:28 | 显示全部楼层 |阅读模式
php5.3安装Zend Guard Loader
帮网友安装的是webmin,系统是centos6 32bit,安装完毕,php是5.3.3,网友需要安装shopex,需要zend支持,php5.3以后,不支持zend optimizer了,改Zend Guard Loader。安装过程也比较简单。
  1.     cd /usr/local/src

  2.     wget http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz

  3.     如果是64位,请下载:

  4.     http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz

  5.     tar zxvf ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz

  6.     cd /usr/local/src/ZendGuardLoader-php-5.3-linux-glibc23-i386/php-5.3.x

  7.     cp ZendGuardLoader.so /usr/lib/php/modules/

  8.     vi /etc/php.ini
复制代码
末尾增加:
  1.     [zend.loader]

  2.     zend_loader.enable=1

  3.     zend_extension=/usr/lib/php/modules/ZendGuardLoader.so
复制代码
service httpd restart重启httpd即可。
然后php -v看看Zend Guard Loader是否安装成功。
  1. [root@vr1 etc]# php -v
  2. PHP 5.3.3 (cli) (built: Feb 22 2013 02:37:06)
  3. Copyright (c) 1997-2010 The PHP Group
  4. Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
  5. with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
复制代码
附Zend Guard Loader英文安装说明:
  1.     Zend Guard Loader installation instructions
  2.     ——————————————-

  3.     1. Extract the Zend Loader package.

  4.     2. Locate and extract the ZendGuardLoader.so (Linux) or ZendLoader.dll (Windows) that corresponds to your php version.

  5.     3. Add the following line to your php.ini file for loading the ZendGuardLoader:
  6.     Linux and Mac OS X: zend_extension=<full_path_to_ZendGuardLoader.so>
  7.     Windows non-thread safe: zend_extension=<full_path_to_ZendLoader.dll>

  8.     4. Add an aditional line to your php.ini for enabling ZendGuardLoader
  9.     ; Enables loading encoded scripts. The default value is On
  10.     zend_loader.enable=1

  11.     5. Optional: following lines can be added your php.ini file for ZendGuardLoader configuration:

  12.     ; Disable license checks (for performance reasons)
  13.     zend_loader.disable_licensing=0
  14.     ; The Obfuscation level supported by Zend Guard Loader. The levels are detailed in the official Zend Guard Documentation. 0 – no obfuscation is enabled
  15.     zend_loader.obfuscation_level_support=3
  16.     ; Path to where licensed Zend products should look for the product license. For more information on how to create a license file, see the Zend Guard User Guide
  17.     zend_loader.license_path=

  18.     6. If you use Zend debugger as well, please make sure to load it after the Zend guard Loader

  19.     7. If you use ioncube loader, please make sure to load it before Zend guard Loader

  20.     8. Restart your Web server.
  21.     ~
复制代码
php5.3安装Zend Guard Loader
摘自:http://www.linode.im/2398.html

该会员没有填写今日想说内容.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表