标题: /root/lnmp: line 70: /usr/local/php/sbin/php-fpm: No such file or directory [打印本页] 作者: 小晖 时间: 2010-10-28 23:48 标题: /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
这个问题,下一步怎么操作啊?
作者: licess 时间: 2010-10-29 09:16 标题: 回复 1# 的帖子 目前只在Debian和Centos上测试过去,ubuntu上没有调试过。你可以收到编译一下php,看一下是什么错误。作者: thinkevd 时间: 2011-1-3 05:41 标题: 也是这个问题 军哥能否指教下在这种情况下如何重新编译php,或者干脆装php5.3?重新编译php加fpm patch担心其他配置都会不同。
谢谢!
在这个帖子里也有人问:https://bbs.vpser.net/viewthread.php?action=printable&tid=1766作者: licess 时间: 2011-1-3 13:09 标题: 回复 3# 的帖子 按lnmp的脚步直接编译安装就行,5.3和现在的5.2.* 安装差异比较大,而且和目前的一些程序可能存在兼容问题,所以不推荐使用。作者: thinkevd 时间: 2011-1-3 23:18 标题: 回复 4# 的帖子 “按lnmp的脚本”的意思是?重新安装lnmp的结果还是一样。
准备重新编译安装php5.2+fpm patch。期待详解?谢谢!作者: thinkevd 时间: 2011-1-4 01:47 标题: 我搞定了,记录一下 参考: 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)