安装宝塔 Zend Guard环境
下载对应的zend-guard-loaderhttps://www.zend.com/downloads/zend-guard-loader
tar zxvf zend-loader-php5.6-linux-x86_64_update1.tar.gz
将opcache.so 和 ZendGuardLoader.so 拷贝到php lib库路径下即可: cpopcache.so/usr/local/php/lib/ cpZendGuardLoader.so/usr/local/php/lib/ 接着编辑php.ini文件: vi/usr/local/php/etc/php.ini 找到; extension=/path/to/extension/msql.so 这一行 在下面添加以下两行: zend_extension=/usr/local/php/lib/ZendGuardLoader.so zend_extension=/usr/local/php/lib/opcache.so 接着在任意位置添加以下内容:; Enables loading encoded scripts. The default value is On zend_loader.enable=1
; 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
此时,运行 php-v , 可以看到如下:https://img2018.cnblogs.com/blog/894621/201811/894621-20181105172746849-1961997378.png看到上面的“withZendGuardLoader v3.3” , 说明安装成功了。
页:
[1]