参考网上的ZendGuardLoader安装教程,在Centos中安装ZendGuardLoader 5.6扩展始终无法正确的加载,错误代码如下:
Failed loading /usr/local/php/include/php/include/ZendGuardLoader.so: /usr/local/php/include/php/include/ZendGuardLoader.so: undefined symbol: executor_globals
折腾好久仍然无法正常加载,经过研究install.sh脚本发现里面是包含ZendGuardLoader编译的,但是为何不能使用仍然搞不懂,
后来一次次实验安装步骤发现选择安装了Please select a opcode cache of the PHP:Y Install Zend OPcache 之后ZendGuardLoader就木有了,重新一键部署选择不安装opcode ZendGuardLoader选项就出现了
搜索资料发现安装opcode 的情况下apache是以–with-mpm=worker即worker模式 运行的,但是ZendGuardLoader不支持worker模式必须选择–with-mpm=prefork既prefork模式才会正常加载ZendGuardLoader
折腾了两天的问题终于解决了~