VPS侦探论坛

 找回密码
 注册
查看: 21951|回复: 13

/root/lnmp: line 70: /usr/local/php/sbin/php-fpm: No such file or directory

[复制链接]
发表于 2010-10-28 23:48:35 | 显示全部楼层 |阅读模式

系统: ubuntu

/root/lnmp restart

=========================================================================
Manager for LNMP V0.5  ,  Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org
Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
/root/lnmp: line 67: kill: (11728) - No such process
Nginx program is reloding!
Shutting down MySQL
. *
Starting MySQL
. *
/root/lnmp: line 70: /usr/local/php/sbin/php-fpm: No such file or directory

这个问题,下一步怎么操作啊?


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-10-29 09:16:22 | 显示全部楼层

回复 1# 的帖子



目前只在Debian和Centos上测试过去,ubuntu上没有调试过。你可以收到编译一下php,看一下是什么错误。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-1-3 05:41:56 | 显示全部楼层

也是这个问题


军哥能否指教下在这种情况下如何重新编译php,或者干脆装php5.3?重新编译php加fpm patch担心其他配置都会不同。
谢谢!
在这个帖子里也有人问:https://bbs.vpser.net/viewthread.php?action=printable&tid=1766
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-1-3 13:09:02 | 显示全部楼层

回复 3# 的帖子




按lnmp的脚步直接编译安装就行,5.3和现在的5.2.* 安装差异比较大,而且和目前的一些程序可能存在兼容问题,所以不推荐使用。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-1-3 23:18:28 | 显示全部楼层

回复 4# 的帖子


“按lnmp的脚本”的意思是?重新安装lnmp的结果还是一样。
准备重新编译安装php5.2+fpm patch。期待详解?谢谢!

军哥运维代购:http://shop63846532.taobao.com/

发表于 2011-1-4 01:47:11 | 显示全部楼层

我搞定了,记录一下


参考:
https://bugs.launchpad.net/php-fpm/+bug/438895
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/411890
http://www.php.net/svn.php
下载安装:ftp://ftp.gnu.org/pub/gnu/autoconf/ 中的autoconf-2.13.tar.gz
编译安装。
修改~/lnmp0.5/debian.sh中的:
./buildconf --force
为:
PHP_AUTOCONF=autoconf213 PHP_AUTOHEADER=autoheader213 ./buildconf --force
我删除了~/lnmp0.5中的php-5.2.14/ ,但也可能是不必要的。
重新安装lnmp。
DONE。
运行:sudo ./lnmp0.5/lnmp restart
.....
Starting MySQL
. *
Shutting down php_fpm . done
Starting php_fpm  done
成功搞定。
有一点不明白,在lnmp安装过程中,仍然出现了以下错误:
g file sapi/apache2filter/sapi_apache2.c
patching file sapi/apache2handler/sapi_apache2.c
patching file sapi/cgi/cgi_main.c
Hunk #1 succeeded at 1920 (offset 117 lines).
patching file sapi/cli/php_cli.c
patching file win32/build/config.w32
Forcing buildconf
buildconf: checking installation...
buildconf: autoconf not found.
           You need autoconf version 2.13 or newer installed
           to build PHP from CVS.
make: *** [buildmk.stamp] 错误 1
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E

但最后还是成功了,也请军哥关注下。

另外:
This bug was fixed in the package php5 - 5.2.10.dfsg.1-2ubuntu1
.....
    + Rename Vcs-Browser & Vcs-Git to XS-Original-
Vcs-Browser & XS-Original-Vcs-Git (LP: #323731).
      + Use autoconf2.13 to build. Thanks to dreamcast4 (LP: #411890)

而在lnmp0.5中安装的可是php-5.2.14,怎么还会有呢?

[ 本帖最后由 thinkevd 于 2011-1-4 01:56 编辑 ]
发表于 2011-1-4 02:15:02 | 显示全部楼层

buildconf: autoconf not found.
最后却成功了,是因为我跳过了buildconf --force?
而在debian.sh的前面,还有一行:
apt-get install -y gcc g++ automake autoconf make
我没改过,也就是还会自动安装autoconf的。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-1-4 02:16:16 | 显示全部楼层

在tmp下面重复了一遍


正解应该是换autoconf-2.13就可以了,debian.sh不用改。请军哥确认下?
以下是我重复过程的截图:

[ 本帖最后由 thinkevd 于 2011-1-4 02:17 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-1-24 04:47:40 | 显示全部楼层

thinkevd能详细介绍下怎么编译安装autoconf-2.13吗?我的问题和你简直一模一样,但我水平太菜了,初次接触linux,不知道怎么编译,谢谢。

军哥运维代购:http://shop63846532.taobao.com/

发表于 2011-8-24 06:32:32 | 显示全部楼层

回复 9# 的帖子




我今天又遇到,装lnmp0.7遇到的。centos5.5。
请参考这里解决:https://bbs.vpser.net/viewthread ... t=%2Fsbin%2Fphp-fpm
我的报错如下:Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP...
Nginx program is stop
PHP-FPM program is not runing!
Shutting down MySQL.. SUCCESS!
MySQL program is stop
Starting LNMP...
Nginx start successfully!
lnmp: line 46: /usr/local/php/sbin/php-fpm: No such file or directory
PHP-FPM start successfully!
Starting MySQL.. SUCCESS!
MySQL start successfully!
发表于 2011-8-24 09:17:11 | 显示全部楼层

回复 10# 的帖子


php没有安装成功,按置顶贴反馈信息。
发表于 2011-8-24 10:44:24 | 显示全部楼层

回复 11# 的帖子


[root@main /]# /usr/local/nginx/sbin/nginx -t
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
[root@main /]# php -v
PHP 5.2.17 (cli) (built: Aug 24 2011 05:42:01)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

环境:centos5.5, lnmpa 0.7。探针程序正常。是不是可以不管php-fpm?在没假装apache之前,。/lnmp.sh restart 一切正常,没有报错。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-8-24 10:51:25 | 显示全部楼层

回复 12# 的帖子

如果你用的lnmpa 那很正常。lnmpa没php-fpm。

而且lnmpa的重启脚本是/root/lnmpa {start|stop|reload|restart|kill|status}
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-10-9 15:24:18 | 显示全部楼层
原帖由 licess 于 2011-8-24 10:51 发表
如果你用的lnmpa 那很正常。lnmpa没php-fpm。

而且lnmpa的重启脚本是/root/lnmpa {start|stop|reload|restart|kill|status}


原来是这样,我原来也以为我是的系统有问题,原来lnmpa没php-fpm。

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-21 11:15 , Processed in 0.030825 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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