xiaosevenjun 发表于 2013-7-17 15:52:45

lnmp安装失败

军哥求帮忙。
我安装lnmp报这个错了。在论坛我没找到有解决方案




cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf.default'
test -d '/usr/local/nginx/logs'               || mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/logs' ||            mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/html'               || cp -R html '/usr/local/nginx'
test -d '/usr/local/nginx/logs' ||            mkdir -p '/usr/local/nginx/logs'
make: Leaving directory `/root/lnmp1.0-full/nginx-1.2.7'
ln: creating symbolic link `/usr/bin/nginx': File exists
Create PHP Info Tool...
Copy PHP Prober...
p.php
============================Install PHPMyAdmin=================================
mv: cannot move `phpMyAdmin-3.4.8-all-languages' to `/home/wwwroot/default/phpmyadmin/phpMyAdmin-3.4.8-all-languages': Directory not empty
mkdir: cannot create directory `/home/wwwroot/default/phpmyadmin/upload/': File exists
mkdir: cannot create directory `/home/wwwroot/default/phpmyadmin/save/': File exists
============================phpMyAdmin install completed=================================
============================add nginx and php-fpm on startup============================
Download new nginx init.d file......
--2013-07-17 15:38:06--http://soft.vpser.net/lnmp/ext/init.d.nginx
Resolving soft.vpser.net... 96.44.153.111
Connecting to soft.vpser.net|96.44.153.111|:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

===========================add nginx and php-fpm on startup completed====================
Starting LNMP...
Starting MySQL. ERROR! The server quit without updating PID file (/usr/local/mysql/data/linux.kbuy.com.pid).
Starting php_fpm /etc/init.d/php-fpm: line 61: /usr/local/php/bin/php-cgi: No such file or directory
failed
Starting nginx daemon: nginx.
# Generated by iptables-save v1.4.7 on Wed Jul 17 15:38:07 2013
*filter
:INPUT ACCEPT
:FORWARD ACCEPT
:OUTPUT ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
COMMIT
# Completed on Wed Jul 17 15:38:07 2013
===================================== Check install ===================================
Checking...
Nginx: OK
Error: /usr/local/php not found!!!PHP install failed.
MySQL: OK
Sorry,Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.

[ 本帖最后由 xiaosevenjun 于 2013-7-18 09:44 编辑 ]

licess 发表于 2013-7-17 19:25:32

没日志就没法知道原因

xiaosevenjun 发表于 2013-7-18 09:45:25

回复 2# 的帖子

军哥,日志我已经附带上了,请帮我看下,万分感谢啊

licess 发表于 2013-7-18 10:54:09

/root/lnmp1.0-full/php-5.2.17/Zend/zend_operators.h: In function 'is_numeric_string':
/root/lnmp1.0-full/php-5.2.17/Zend/zend_operators.h:120: error: 'MAX_LENGTH_OF_LONG' undeclared (first use in this function)
/root/lnmp1.0-full/php-5.2.17/Zend/zend_operators.h:180: error: 'long_min_digits' undeclared (first use in this function)
In file included from /root/lnmp1.0-full/php-5.2.17/ext/standard/php_versioning.h:24,
               from /root/lnmp1.0-full/php-5.2.17/ext/date/php_date.c:27:
/root/lnmp1.0-full/php-5.2.17/ext/standard/basic_functions.h:151:2: error: #error Need type which holds 32 bits
In file included from /root/lnmp1.0-full/php-5.2.17/ext/standard/php_versioning.h:24,
               from /root/lnmp1.0-full/php-5.2.17/ext/date/php_date.c:27:
/root/lnmp1.0-full/php-5.2.17/ext/standard/basic_functions.h: At top level:
/root/lnmp1.0-full/php-5.2.17/ext/standard/basic_functions.h:187: error: expected specifier-qualifier-list before 'php_uint32'
make: *** Error 1

看样子像是php获取系统是32位还是64位时出错
解决方法只能换其他系统
页: [1]
查看完整版本: lnmp安装失败