- 积分
- 34
- 威望
-
- 金钱
-
- 注册时间
- 2011-5-7
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
你好,用lnmp1.2脚本升级PHP到5.6后,web模式和命令行cli模式的php版本不一致,应该怎么改?如下:一个是php5.3.3(cli)一个是php5.6.18(fpm-fcgi)。
[root@localhost php.d]# php --version
PHP 5.3.3 (cli) (built: Feb 9 2016 10:21:34)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
[root@localhost php.d]# /usr/local/php/sbin/php-fpm -v
PHP 5.6.18 (fpm-fcgi) (built: Feb 18 2016 14:55:40)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with XCache v3.2.0, Copyright (c) 2005-2014, by mOo
with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
with XCache Optimizer v3.2.0, Copyright (c) 2005-2014, by mOo
with XCache Cacher v3.2.0, Copyright (c) 2005-2014, by mOo
with XCache Coverager v3.2.0, Copyright (c) 2005-2014, by mOo
[root@localhost php.d]#
这样造成命令行启动的时候会提示如下错误信息:
[root@localhost php.d]# php -m | grep 'redis'
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/redis.so' - /usr/lib/php/modules/redis.so: undefined symbol: zend_new_interned_string in Unknown on line 0
redis.so是我从no-debug-non-zts-20131226 目录复制过去的。 |
|