php5.3.3php5.4如何支持zend,PHP5.3、PHP5.4下安装ZendOptimizer或Zend Guard Loader的方法
標簽:
現(xiàn)在很多PHP程序都需要ZendOptimizer環(huán)境,但是ZendOptimizer在PHP5.2之后已經被支持,那怎么辦,Zend也不會這么做,原來PHP5.3開始ZendOptimizer正式改為Zend Guard Loader。
Zend Guard Loader的發(fā)布,而且Zend Optimizer不會再更新,并且由于差異很大使用Zend Guard加密代碼時將提示你是否使用php5.3,如果使用5.3那么代碼就無法在php5.2上運行。
Zend Guard Loader安裝說明
1、下載Zend Guard Loader包。(官方地址:http://www.zend.com/en/products/guard/downloads)
下面的下載地址包含了Linux版本和Windows版本
下載地址:
360云盤:http://yunpan.cn/cJNjrwRyriYTy?(提取碼:029e)
百度網盤:http://pan.baidu.com/s/1hqmtXLM
2. 并提取ZendGuardLoader.so(Linux)或ZendLoader.dll(Windows)上傳到服務器。
3. 加載ZendGuardLoader,配置PHP.INI
例子:
zend_extension=C:\web\PHP\ext\ZendLoader.dll
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
zend_loader.license_path=
下面逐一說明:
注意windows版的只支持NTS(非線程安全)版的PHP5.3,即phpinfo中Thread Safety為disabled的!
在你的php.ini文件中添加以下行:
Linux和Mac OS X:zend_extension=
Windows的非線程安全的:zend_extension=
4. 添加下面這行加載ZendGuardLoader:
;啟用加載編碼腳本。默認開啟
zend_loader.enable=1
5. 可選:配置ZendGuardLoader
;禁用檢查授權(出于性能原因)
zend_loader.disable_licensing=0
;配置混淆水平 0 – 不支持混淆
zend_loader.obfuscation_level_support=3
;配置尋找授權文件的路徑
zend_loader.license_path=
6. 如果你同時使用Zend debugger,請保證加載Zend guard Loader后再加載Zend debugger
7. 如果你同時使用Ioncube loader,請保證加載Ioncube loader后再加載Zend guard Loader
8. 重啟Web服務。
如果在phpinfo中看到如下內容(不同的版本可能會有所不同):
This program makes use of the Zend Scripting Language Engine:Zend Engine v2.4.0, Copyright (c) 1998-2011 Zend Technologies
說明安裝已經成功!
附(Windows版本):
[Zend.loader]
zend_extension=X:\ZendGuardLoader\php-5.4.x\ZendLoader.dll
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
zend_loader.license_path=
附(Linux版本):
zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so
標簽:
總結
以上是生活随笔為你收集整理的php5.3.3php5.4如何支持zend,PHP5.3、PHP5.4下安装ZendOptimizer或Zend Guard Loader的方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux下启动mongodb
- 下一篇: git常用命令及冲突解决