1. 下載 Zend Guard Loader 壓縮包。(官方下載地址:http://www.zend.com/en/products/guard/downloads)
2. 解壓并提取 ZendGuardLoader.so(Linux)或 ZendLoader.dll(Windows),對(duì)應(yīng)你的PHP版本。
3. 在你的 php.ini 文件添加下面一行,用來加載 Zend Guard Loader:
Linux 和 Mac OS X: zend_extension = 完整路徑/ZendGuardLoader.so
Windows(非線程安全): zend_extension = 完整路徑/ZendLoader.dll
4. 在 php.ini 額外新增一行,啟用 Zend Guard Loader:
zend_loader.enable = 1
5. 可選:可以在 php.ini 文件添加以下行到 Zend Guard Loader 配置位置:
;禁用許可證檢查(為了性能的原因)
zend_loader.disable_licensing = 0
;讓 Zend Guard Loader 支持混淆級(jí)別。級(jí)別在 Zend Guard 的官方詳細(xì)文檔。 0 - 不啟用混淆
zend_loader.obfuscation_level_support = 3
;從這個(gè)路徑尋找Zend產(chǎn)品授權(quán)的產(chǎn)品許可證。欲了解更多有關(guān)如何創(chuàng)建一個(gè)許可證文件的信息,請(qǐng)參閱 Zend Guard 用戶指南.
zend_loader.license_path =
6. 如果您使用 Zend debugger,請(qǐng)確保加載 Zend guard Loader。
7. 如果您使用 ioncube loader,請(qǐng)務(wù)必在它之前加載 Zend guard Loader。
8. 重新啟動(dòng)Web服務(wù)器。