CentOS安装zend

PHP 5.3 下,Zend Optimizer 已经被全新的 Zend Guard Loader 取代。

1. 下载对应版本的 Zend Guard Loader 压缩包,使用”php –version”参看php版本,然后下载对应php版本和系统32位或64位版本的安装包。(http://www.zend.com/en/products/guard/downloads)

2. 解压缩得到ZendGuardLoader.so(Linux)或 ZendLoader.dll(Windows)。将之复制到指定的系统路径下,比如 /usr/lib64/

3. 修改 /etc/php.ini 文件,在首行以下加入如下几行:

; Add the following line to your php.ini file for loading the ZendGuardLoader:
zend_extension=/usr/lib64/ZendGuardLoader.so
; Add an aditional line to your php.ini for enabling ZendGuardLoader
; Enables loading encoded scripts. The default value is On
zend_loader.enable=1
; Disable license checks (for performance reasons)
zend_loader.disable_licensing=0
; The Obfuscation level supported by Zend Guard Loader. The levels are detailed in the official Zend Guard Documentation. 0 - no obfuscation is enabled
zend_loader.obfuscation_level_support=3

4. 重启web服务,使用“php -v”查看安装情况。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据