[root@showip opt]# wget http://downloads.zend.com/guard/6.0.0/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar.gz
[root@showip opt]# tar zxf ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64.tar.gz
[root@showip opt]# mkdir /usr/local/zend
[root@showip opt]# cp ZendGuardLoader-70429-PHP-5.4-linux-glibc23-x86_64/php-5.4.x/ZendGuardLoader.so /usr/local/zend/
[root@showip opt]# vi /usr/local/php/etc/php.ini #添加一下内容
[Zend Optimizer]
zend_loader.enable = 1 #启用 Zend Guard Loader
[Zend Guard]
zend_extension=/usr/local/zend/ZendGuardLoader.so
zend_loader.enable=1
zend_loader.disable_licensing=0 #禁用许可证检查
zend_loader.obfuscation_level_support=3 #支持混淆级别
zend_loader.license_path=
3.重启php测试
apache 重启 service httpd restart
网友评论