zend 安装php 5.6,CentOS7.0+Zend Guard Loader for PHP 5.6环境搭建

本文是在centos7.0环境下搭建的, 由于我的php是5.6版本的, 所以需要去下载对应的Zend Guard Loader。

下载地址:

http://www.zend.com/en/products/loader/downloads

下载后解压:

tar zxvf zend-loader-php5.6-linux-x86_64_update1.tar.gz

将opcache.so 和 ZendGuardLoader.so 拷贝到php lib库路径下即可:

cp  opcache.so  /usr/local/php/lib/

cp  ZendGuardLoader.so  /usr/local/php/lib/

接着编辑php.ini文件:

vi  /usr/local/php/etc/php.ini

找到;   extension=/path/to/extension/msql.so 这一行

在下面添加以下两行:

zend_extension=/usr/local/php/lib/ZendGuardLoader.so

zend_extension=/usr/local/php/lib/opcache.so

接着在任意位置添加以下内容:

; Enables loading encoded scripts. The default value isOn

zend_loader.enable=1; Disable license checks (forperformance reasons)

zend_loader.disable_licensing=0; The Obfuscation level supported by Zend Guard Loader. The levels are detailedin the official Zend Guard Documentation. 0 - no obfuscation isenabled

zend_loader.obfuscation_level_support=3; Path towhere licensed Zend products should look forthe product license. For more information on how to create a license file, see the Zend Guard User Guide

zend_loader.license_path=

此时,运行 php  -v , 可以看到如下:

757a28dc08f38d6365ed334c898add74.png

看到上面的“with  Zend  Guard  Loader v3.3” , 说明安装成功了。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值