Windows下PHP 5.3安裝Zend Guard Loader 問題

從PHP5.3開始如果要支持ZendGuard加密的PHP代碼,必須安裝Zend Guard Loader,老的zend optimizer將不被支持。本文介紹在工作中爲Linux安裝Zend Guard Loader支持的過程。

  操作系統爲CentOS5.5,PHP版本爲5.3.8(CentOS5.5中的PHP默認版本較低,如果要升級到PHP最新版,可以使用remi的report源進行升級)。

   Windows 下面的 Zend Guard Loader 不支持php5.3.8 VC9 x86 Thread Safe而,php5.3.8  VC9 x86 Non Thread Safe 又不支持 apache。所以安裝的話,就需要安裝在iis或者和nginx搭配。

確實需要非線程安全版本的PHP才能安裝 zend guard loader,我親自試過的。好像在網上看到過安全版本PHP安裝方法,不過配置不是下面的了。
PHP 5.3.X 開始 Zend Optimizer 正式被 Zend Guard Loader 取代了。但是安裝方法有所不同,那麼我就來給大家介紹下怎麼安裝 Zend Guard Loader 吧。

Zend Guard Loader (Runtime for PHP 5.3) 5.5.0

Zend Guard Loader (Runtime for PHP 5.3) 5.5.0
下載地址:http://downloads.zend.com/guard/ ... php-5.3-Windows.zip
下載好後解壓壓縮包,找到 ZendGuardLoader-php-5.3-Windows\ZendServer\lib\loader\php-5.3.x 目錄下的 ZendLoader.dll 文件,將它放到你的php目錄下ext下,再編輯php.ini文件,添加一段代碼(如):
[Zend.loader]
zend_loader.enable=1
zend_loader.disable_licensing=1
zend_loader.obfuscation_level_support=3
zend_loader.license_path=
zend_extension=”d:\php\ext\ZendLoader.dll”
最後我們來測試下安裝是否成功,重啓IIS,用php探針來查看或者用 <?php phpinfo(); ?>
會在後面看到

瞭解更多問題,訪問專業網站建設 http://www.owjee.com

源文地址:http://bbs.phpchina.com/thread-238033-1-1.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章