使用的是 阿里云的ECS
安装的是Centos7.2 nginx (1.12.1)
php(7.0.21),php-fpm(7.1.1)
我安装的扩展 redis和zend扩展opcache
在重启php-fpm时正常,访问phpinfo显示也是正常(显示已经安装上述扩展)
但是:执行 php -v 命令却提示有错和警告:如下
Failed loading /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/opcache.so: /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/opcache.so: undefined symbol: zend_signal_globals
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/redis.so' - /usr/lib64/php/modules/redis.so: undefined symbol: php_var_unserialize_init in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/opcache.so' - /usr/lib64/php/modules/opcache.so: undefined symbol: zend_signal_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/redis.so' - /usr/lib64/php/modules/redis.so: undefined symbol: php_var_unserialize_init in Unknown on line 0
如图:
请各位大牛指教!
紫衣仙女