(1)/application/php/lib/php/modules是PHP的extension_dir的路径,如下修改php.ini
; Directory in which the loadable extensions (modules) reside. ; http: //php.net/extension-dir ; extension_dir = "/application/php/lib/php/modules" ; On windows: ; extension_dir = "ext" |
(2)把ZendGuardLoader.so复制到/application/php/lib/php/modules
(3)在php.ini里面最末尾添加
[Zend Guard Loader] zend_extension=/application/php/lib/php/modules/ZendGuardLoader.so zend_loader.enable= 1 zend_loader.disable_licensing= 0 zend_loader.obfuscation_level_support= 3 zend_loader.license_path= |
(4)重启apache 服务,如果是nginx,请重启nginx和php-fpm
(5)打开index.php页面,看见如下图表示成功了。