cnmt 发表于 2013-5-22 11:24:13

刚装的0.9发现php-fpm启动不了。访问控针提示502

root@debian:/usr/nload-0.7.4# /root/lnmp restart
=========================================================================
Manager for LNMP V0.9,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}
=========================================================================
Stoping LNMP...
Nginx program is stop
PHP-FPM program is not runing!
Shutting down MySQL
......
MySQL program is stop
Starting LNMP...
Nginx start successfully!
/root/lnmp: line 46: /usr/local/php/sbin/php-fpm: 没有那个文件或目录
PHP-FPM start successfully!
Starting MySQL
..
MySQL start successfully!
root@debian:/usr/nload-0.7.4#

licess 发表于 2013-5-22 12:03:54

php没编译安装成功,按置顶帖要求上传日志

licess 发表于 2013-5-22 12:04:04

php没编译安装成功,按置顶帖要求上传日志

cnmt 发表于 2013-5-22 13:05:08

原帖由 licess 于 2013-5-22 12:04 发表 https://bbs.vpser.net/images/common/back.gif
php没编译安装成功,按置顶帖要求上传日志


日志里的个人信息编辑掉了。其它的没动。

licess 发表于 2013-5-22 20:10:14

/usr/lnmp0.9-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined reference to `libiconv_open'
/usr/lnmp0.9-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:81: undefined reference to `libiconv'
/usr/lnmp0.9-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close'
/usr/lnmp0.9-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status

删除lnmp安装目录,重新解压,把安装脚本里的libiconv 的configure 最后面加上一个--enable-static试试
./uninstall.sh 后重新安装

cnmt 发表于 2013-5-22 20:18:49

原帖由 licess 于 2013-5-22 20:10 发表 https://bbs.vpser.net/images/common/back.gif
/usr/lnmp0.9-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined reference to `libiconv_open'
/usr/lnmp0.9-full/php-5.2.17/ext/xmlrpc/libxmlrpc/encodings.c:81: undefined reference to `libic ...

在debian.sh里。只找到类式这种。
tar zxvf libiconv-1.14.tar.gz
cd libiconv-1.14/
./configure
make && make install
cd ../

cd $cur_dir


要加这里???
上面还找到几处都是下载的链接。

cnmt 发表于 2013-5-22 20:22:28

还是要改别的文件。请军哥说详细些。谢谢。

cnmt 发表于 2013-5-22 20:42:15

我已在实际的服务器中。和虚拟机中。。debian6.0764位下 和debian7 64位下。分别实验。。。都是PHP-FPM program is not runing!


在0.8出来时。装过还好用的。现在装0.8也不行。好像0.8也比原来的改进了。。。。nginx版本等也和原来的不一样了。原来的是0.8几

[ 本帖最后由 cnmt 于 2013-5-22 20:45 编辑 ]

licess 发表于 2013-5-22 21:05:43

回复 6# 的帖子

删除lnmp0.9目录,重新下载lnmp,并解压,先运行./uninstall.sh

再修改debian.sh里前面你发的那部分里的
./configure 后加--enable-static

再开始安装

cnmt 发表于 2013-5-24 09:25:02

cd libiconv-1.14/
./configure --enable-static
make && make install
cd ../
我是这样加的对吧。
--enable-static前面加了一个空格。现在试一下。一会来报告。

cnmt 发表于 2013-5-24 10:54:42

还是不行啊。我已上传日志您看下。

cnmt 发表于 2013-5-24 13:48:17

军哥帮看看。好几天了一直没装上。

licess 发表于 2013-5-24 14:22:56

是在原来上面覆盖安装的还是全新安装的

这个问题我在其他有这个问题的机器上是测试过了的,按我说的方法可以正常编译安装上

cnmt 发表于 2013-5-24 14:31:13

原帖由 licess 于 2013-5-24 14:22 发表 https://bbs.vpser.net/images/common/back.gif
是在原来上面覆盖安装的还是全新安装的

这个问题我在其他有这个问题的机器上是测试过了的,按我说的方法可以正常编译安装上

按照你说的方法。./uninstall.sh后。。。又装的。我去年。用debian6.03装的0.8也成功。。今天又把去年那个lnmp0.8-full找出来。装了一下也不行。(软件版本已经升级了不是去年的版本了。)

[ 本帖最后由 cnmt 于 2013-5-24 14:35 编辑 ]

cnmt 发表于 2013-5-24 14:32:26

你看一下这个。。。手动装的话在php 5.217下说是不行了。http://www.nginx.cn/231.html
页: [1] 2
查看完整版本: 刚装的0.9发现php-fpm启动不了。访问控针提示502