下載地址:http://www.zend.com/en/products/loader/downloads#Linux

1、解壓
wget http://downloads.zend.com/guard/7.0.0/zend-loader-php5.6-linux-x86_64_update1.tar.gz tar -zxvf ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar.gz cd ZendGuardLoader/ #進入解壓后的目錄 cat README.txt#查看 README 文檔.
2、開始安裝
復制對應PHP版本文件夾下的 ZendGuardLoader.so 到PHP安裝目錄(/etc/httpd/modules 目錄或 /usr/lib/httpd/modules 目錄, 這兩個目錄其實是同一個位置)
cp zend-loader-php5.6-linux-x86_64/ZendGuardLoader.so /etc/httpd/modules
編輯php配置文件.在 php.ini 文件末尾添加幾行配置項.
zend_extension=/etc/httpd/modules/ZendGuardLoader.so
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
zend_loader.license_path=
重啟 Apache 或 Nginx
service httpd restart
