PHP5.3下的安裝Zend Optimizer

來源:互聯網
上載者:User

安裝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.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.