/root/lnmp: line 70: /usr/local/php/sbin/php-fpm: No such file or directory
系统: 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
这个问题,下一步怎么操作啊?
回复 1# 的帖子
目前只在Debian和Centos上测试过去,ubuntu上没有调试过。你可以收到编译一下php,看一下是什么错误。也是这个问题
军哥能否指教下在这种情况下如何重新编译php,或者干脆装php5.3?重新编译php加fpm patch担心其他配置都会不同。谢谢!
在这个帖子里也有人问:https://bbs.vpser.net/viewthread.php?action=printable&tid=1766
回复 3# 的帖子
按lnmp的脚步直接编译安装就行,5.3和现在的5.2.* 安装差异比较大,而且和目前的一些程序可能存在兼容问题,所以不推荐使用。回复 4# 的帖子
“按lnmp的脚本”的意思是?重新安装lnmp的结果还是一样。准备重新编译安装php5.2+fpm patch。期待详解?谢谢!
我搞定了,记录一下
参考: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_fpmdone
成功搞定。
有一点不明白,在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: *** 错误 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 编辑 ] buildconf: autoconf not found.
最后却成功了,是因为我跳过了buildconf --force?
而在debian.sh的前面,还有一行:
apt-get install -y gcc g++ automake autoconf make
我没改过,也就是还会自动安装autoconf的。
在tmp下面重复了一遍
正解应该是换autoconf-2.13就可以了,debian.sh不用改。请军哥确认下?以下是我重复过程的截图:
[ 本帖最后由 thinkevd 于 2011-1-4 02:17 编辑 ] thinkevd能详细介绍下怎么编译安装autoconf-2.13吗?我的问题和你简直一模一样,但我水平太菜了,初次接触linux,不知道怎么编译,谢谢。
回复 9# 的帖子
我今天又遇到,装lnmp0.7遇到的。centos5.5。请参考这里解决:https://bbs.vpser.net/viewthread.php?tid=2610&highlight=%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!
回复 10# 的帖子
php没有安装成功,按置顶贴反馈信息。回复 11# 的帖子
# /usr/local/nginx/sbin/nginx -tthe configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
# 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 一切正常,没有报错。
回复 12# 的帖子
如果你用的lnmpa 那很正常。lnmpa没php-fpm。而且lnmpa的重启脚本是/root/lnmpa {start|stop|reload|restart|kill|status} 原帖由 licess 于 2011-8-24 10:51 发表 https://bbs.vpser.net/images/common/back.gif
如果你用的lnmpa 那很正常。lnmpa没php-fpm。
而且lnmpa的重启脚本是/root/lnmpa {start|stop|reload|restart|kill|status}
原来是这样,我原来也以为我是的系统有问题,原来lnmpa没php-fpm。
页:
[1]