VPS侦探论坛

 找回密码
 注册
查看: 6279|回复: 3

/root/lnmpa status php版本与php -v 版本不一样

[复制链接]
发表于 2012-4-14 14:30:41 | 显示全部楼层 |阅读模式

两全版本竟然不一样。怎么解决

rockscrusher:~/lnmp0.7# /root/lnmpa status
=========================================================================
Manager for LNMPA V0.7  ,  Written by Licess
=========================================================================
LNMPA is a tool to auto-compile & install Nginx+MySQL+PHP+Apache on Linux
This script is a tool to Manage status of LNMPA
For more information please visit http://www.lnmp.org

Usage: /root/lnmpa {start|stop|reload|restart|kill|status}
=========================================================================
Nginx is runing!
                       Apache Server Status for localhost

   Server Version: Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8o
          PHP/5.2.17

   Server Built: May 15 2011 09:45:02
     __________________________________________________________________

   Current Time: Saturday, 14-Apr-2012 14:27:45 CST
   Restart Time: Saturday, 14-Apr-2012 14:07:02 CST
   Parent Server Generation: 0
   Server uptime: 20 minutes 42 seconds
   5 requests currently being processed, 7 idle workers

____W_._..WW.....WW_............................................
................................................................
................................................................
................................................................

   Scoreboard Key:
   "_" Waiting for Connection, "S" Starting up, "R" Reading Request,
   "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
   "C" Closing connection, "L" Logging, "G" Gracefully finishing,
   "I" Idle cleanup of worker, "." Open slot with no current process
MySQL running (13346).


php -v如下

PHP 5.3.6 (cli) (built: May 15 2011 11:16:16)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
    with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-4-14 17:29:39 | 显示全部楼层


可能是升级了php没重启吧
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-4-15 14:10:29 | 显示全部楼层

一个读的是系统变量里面的PHP,一个是你真实使用的PHP环境,没有把系统变量里面的PHP给替换掉。把你PHP安装目录下面的/bin/php 连接到/bin下面的PHP即可。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-7-12 23:37:06 | 显示全部楼层



具体如何操作啊?请指教
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-28 01:16 , Processed in 0.025716 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表