sbmzhcn 发表于 2012-4-14 14:30:41

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

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

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

licess 发表于 2012-4-14 17:29:39

可能是升级了php没重启吧

yuweitaocn 发表于 2012-4-15 14:10:29

一个读的是系统变量里面的PHP,一个是你真实使用的PHP环境,没有把系统变量里面的PHP给替换掉。把你PHP安装目录下面的/bin/php 连接到/bin下面的PHP即可。

graceufo 发表于 2015-7-12 23:37:06

具体如何操作啊?请指教
页: [1]
查看完整版本: /root/lnmpa status php版本与php -v 版本不一样