企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
Zend Guard,大家常用的PHP代码加密工具。 Zend Optimizer(ZO),对应的解密工具 只能安装在PHP5.2.x及以下的版本中。 Zend Guard Loader(ZGL) 是 Zend Optimizer的代替品 只能安装在PHP5.3.x及以上的版本里 ## Zend Guard Loader和ZTS不能共存 Zend Guard Loader 需使用**NTS**(No Thread Safe)版php,在编译php时不能使用enable-maintainer-zts 因此只能Zend Guard Loader只能工作在httpd的prefork模型下(--with-mpm=prefork) pthreads 扩展,需要构建 PHP 时**启用 ZTS** (Zend Thread Safety)。(--enable-maintainer-zts 选项, Windows 平台为 --enable-zts) ZTS 是构建期配置选项,只能通过构建时通过选项启用,无法在构建之后启用。 ## 安装 [下载][1] yum方式安装的httpd和php,可以直接yum添加扩展 解压zendguardloader,复制到指定路径,天假如下配置即可 /etc/php.d/zendguardloader.ini ~~~ [zend guard] zend_loader.enable=1 zend_extension = /usr/lib64/php/modules/ZendGuardLoader.so ~~~ 重启httpd即可 ![](http://om4h63cja.bkt.clouddn.com/17-6-16/30567415.jpg) [1]:http://www.zend.com/en/products/loader/downloads#Linux