nginx - php不同版本问题
程序员文章站
2024-01-29 21:01:28
...
在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 沒启动?
推荐阅读
-
nginx - php不同版本问题
-
Mac下安装php70+php56+nginx多版本开发环境
-
AMFPHP1.4与PHP5.3及以上版本不兼容问题的解决
-
PyQt编译.qrc文件时出现使用pyrcc版本不同的问题
-
[PHP] 新版本PHP7.4与新版本MySQL8认证问题
-
Swoole-1.7.22 版本已发布,修复PHP7相关问题_php实例
-
nginx,php不能上传大图有关问题(413)
-
请大家进来讨论下,windows 系统下 nginx+php 是如何解决并发访问有关问题的
-
刚刚装了php7 nginx下有多个php版本,怎么选择使用哪一个?
-
隐藏Nginx或Apache以及PHP的版本号的方法_PHP