问题:在安装了Zend Guard Loader后使用php-v 出现了错误/usr/local/lib/ZendGuardLoader.so: cannot open shared object file: No such file or directory


系统环境

京东云 Centos 7.2 64位

Php  5.6

nnginx (yum安装)

Zend Guard Loader安装步骤

在网站http://www.zend.com/en/products/guard/downloads#Linux下载压缩包,解压



下面这三部很重要

其中要把从压缩包里解出来的ZendGuardLoader.so拷贝出来,拷贝到,下面第一步中extension_dir的位置,很重要

1, 从phpinfo(); 找到extension_dir, php.ini的位置
2, 把上面解压的ZendGuardLoader.so放在 extension_dir 目录下
3, 打开php.ini, 最后面加上一句: zend_extension=ZendGuardLoader.so

重启

service nginx restart

用php -v检查


完美