nginx - php不同版本问题
程序员文章站
2022-03-28 21:33:46
...
在mac下iTerm查看的php版本:
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
然而当我进入localhost的info.php中是得到php-5.5.14,如图:
是我的nginx配置有错么?求指教,刚入nginx
回复内容:
在mac下iTerm查看的php版本:
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
然而当我进入localhost的info.php中是得到php-5.5.14,如图:
是我的nginx配置有错么?求指教,刚入nginx
which php
的php和nginx指向的php-fpm分属5.5和5.6两个版本
顺便第N次推荐 http://phpbrew.github.io/phpbrew/
php-fpm 沒启动?
上一篇: 如何在页首添加一张背景图片
推荐阅读
-
关于PHP5.6+版本“No input file specified”问题的解决
-
ECshop 迁移到 PHP7版本时遇到的兼容性问题
-
CentOS 7.x编译安装Nginx1.10.3+MySQL5.7.16+PHP5.2 5.3 5.4 5.5 5.6 7.0 7.1多版本全能环境
-
PHP5.5和之前的版本empty函数的不同之处
-
LabVIEW2011能打开LabVIEW2016吗?LabVIEW不同版本之间的兼容性问题解答
-
Linux系统下为Nginx安装多版本PHP
-
解决更换PHP5.4以上版本后Dedecms后台登录空白问题的方法
-
PHP 5.3.1 安装包 VC9 VC6不同版本的区别是什么
-
php calender(日历)二个版本代码示例(解决2038问题)
-
Nginx(PHP/fastcgi)的PATH_INFO问题