首页 > 后端开发 > php教程 > nginx - php不同版本问题

nginx - php不同版本问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-06-06 20:38:23
原创
1000 人浏览过

在mac下iTerm查看的php版本:

<code>php -v 

PHP 5.6.5 (cli) (built: Feb 2 2015 19:51:09) (DEBUG) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies with Xdebug v2.2.7, Copyright (c) 2002-2015, by Derick Rethans

php-fpm -v 

PHP 5.6.5 (fpm-fcgi) (built: Feb 2 2015 19:51:15)     (DEBUG) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.6.0,     Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.4-    dev, Copyright (c) 1999-2014, by Zend Technologies with Xdebug     v2.2.7, Copyright (c) 2002-2015, by Derick Rethans
</code>
登录后复制
登录后复制

然而当我进入localhost的info.php中是得到php-5.5.14,如图:

nginx - php不同版本问题

是我的nginx配置有错么?求指教,刚入nginx

回复内容:

在mac下iTerm查看的php版本:

<code>php -v 

PHP 5.6.5 (cli) (built: Feb 2 2015 19:51:09) (DEBUG) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies with Xdebug v2.2.7, Copyright (c) 2002-2015, by Derick Rethans

php-fpm -v 

PHP 5.6.5 (fpm-fcgi) (built: Feb 2 2015 19:51:15)     (DEBUG) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.6.0,     Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.4-    dev, Copyright (c) 1999-2014, by Zend Technologies with Xdebug     v2.2.7, Copyright (c) 2002-2015, by Derick Rethans
</code>
登录后复制
登录后复制

然而当我进入localhost的info.php中是得到php-5.5.14,如图:

nginx - php不同版本问题

是我的nginx配置有错么?求指教,刚入nginx

which php 的php和nginx指向的php-fpm分属5.5和5.6两个版本

顺便第N次推荐 http://phpbrew.github.io/phpbrew/

php-fpm 沒启动?

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
怎么学好php
来自于 1970-01-01 08:00:00
0
0
0
PHP扩展intl
来自于 1970-01-01 08:00:00
0
0
0
php数据获取?
来自于 1970-01-01 08:00:00
0
0
0
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板