PHP5.3下的安装Zend Optimizer

安装zend的问题困扰我很久,最后这篇文章给了我提示,替换php版本(相同版本号从msi版本换成zip版本)后成功,转载如下,原地址为:http://woshao.com/article/66f1f26e9ae211e0b4f6000c2959fd2a/


最近配置新版本的php环境,由于MYSQL和PHP版本都需要更新,服务器上是用的目前最新的php 5.3.6,然后去Zend下载的ZendOptimizer的最新版本3.3.3,显而易见安装后ZendOptimizer没加载

原因在于ZendOptimizer 3.3.3只支持php 5.2.x,如果php 5.3.x就需要用ZendGuardLoader 5.5这个产品,换句话说就是ZendOptimizer今后zend官方不更新了。 
那就装ZendGuardLoader,但是ZendGuardLoader 5.5只能解Zend Guard 5.5加密的代码,老版本的Zend Guard加密的代码无能无力。如果你要用到zend的产品是用Zend Guard5.5以上的版本加密的,恭喜你直接装ZendGuardLoader即可,但是如果你要用的那产品的开发商还没这么前卫的话,就继续往下读吧。 
目前这个年代IIS里用的PHP都是用fastcgi方式了,fastcgi给大家灌输的概念是要用非线程安全(nts)版本的PHP。如果ZendOptimizer 3.3.3加php 5.2.x的nts版的话,又挂了,因为如果要用ZendOptimizer需要用线程安全的版本。 
照目前来说,符合条件的最新的就是php-5.2.17-Win32-VC6-x86,而它又分msi和zip两个。按照习惯用的msi,但装上后php后页面上fastcgi报错(还未装zend就错),php目录下面放php.ini、windows目录下放php.ini、两个目录下都放php.ini这3中情况都试了都同样的出错…… 
然后卸载了php的msi安装版,换上了zip版,php目录下面不放php.ini、windows目录下放php.ini,phpinfo()终于出来了“with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies” 
随后另在一台服务器上IIS6+fastcgi的php 5.2.17线程安全zip版装ZendOptimizer同样成功。证明虽然不能说ZendOptimizer在php 5.2.x里只能如此安装,但至少如此安装绝对能配通。 
关于ZendOptimize安装,上官方下载ZendGuardLoader-php-5.3-Windows 
下载后将相应的ZendLoader.dll文件进行加放到php.ini上即可 
详细方法见 
Zend Guard Loader installation instructions 
——————————————- 
1. Extract the Zend Loader package. 
2. Locate and extract the ZendGuardLoader.so (Linux) or ZendLoader.dll (Windows) that corresponds to your php version. 
3. Add the following line to your php.ini file for loading the ZendGuardLoader: 
   Linux and Mac OS X:      zend_extension=<full_path_to_ZendGuardLoader.so> 
   Windows non-thread safe: zend_extension=<full_path_to_ZendLoader.dll> 
4. Add an aditional line to your php.ini for enabling ZendGuardLoader 
  ; Enables loading encoded scripts. The default value is On 
  zend_loader.enable=1 
5. Optional: following lines can be added your php.ini file for ZendGuardLoader configuration: 
   ; 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 
   ; 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 
     zend_loader.license_path= 
6. If you use Zend debugger as well, please make sure to load it after the Zend guard Loader 
7. If you use ioncube loader, please make sure to load it before Zend guard Loader 
8. Restart your Web server.


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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值