VPS侦探论坛

 找回密码
 注册
查看: 17063|回复: 17

502 Bad Gateway

[复制链接]
发表于 2011-4-20 16:12:14 | 显示全部楼层 |阅读模式

1、您使用的Linux发行版本及版本号:Debian 捷克免费vps
2、502 Bad Gateway
php安装不成功
一开始安装0.6也是,安装那些方法还是 不行,就安装0.5问题也是一样。单独安装php,安装不了。请军歌帮忙,谢谢。


附件

[ 本帖最后由 jxyk2007 于 2011-4-20 16:28 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-4-20 16:13:31 | 显示全部楼层

回复 1# 的帖子



vps什么配置?
php单独安装什么错误提示
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-4-20 16:13:56 | 显示全部楼层

不可以上传附件?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-4-20 16:16:56 | 显示全部楼层



已经上传了附件。。。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-4-20 16:19:41 | 显示全部楼层

回复 4# 的帖子


下不了,用本站的上传附件

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

 楼主| 发表于 2011-4-20 16:27:13 | 显示全部楼层

不可以上传附件啊 ??????
附件:http://chlumsan.vserver.cz/lnmp.rar


 楼主| 发表于 2011-4-20 16:39:23 | 显示全部楼层

已经上传了附件。。。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-4-20 17:10:51 | 显示全部楼层

日志不完整,你直接说你php手动编译时的错误吧
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-4-20 17:27:28 | 显示全部楼层

chlumsan:~/php-5.2.14# make
make: *** No targets specified and no makefile found.  Stop.

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

发表于 2011-4-20 19:17:45 | 显示全部楼层



configure哪一步还没执行吧,执行看看有什么错误
 楼主| 发表于 2011-4-20 19:36:32 | 显示全部楼层

Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/local/apache/bin/apxs follows:
./configure: line 6461: /usr/local/apache/bin/apxs: No such file or directory
configure: error: Aborting
 楼主| 发表于 2011-4-20 20:12:17 | 显示全部楼层

chlumsan:/phptest/libmcrypt-2.5.8# /sbin/ldconfig
/sbin/ldconfig: /usr/lib/libmysqlclient_r.so.16 is not a symbolic link

/sbin/ldconfig: /usr/lib/libmysqlclient.so.16 is not a symbolic link

chlumsan:/phptest/libmcrypt-2.5.8# cd libltdl/
chlumsan:/phptest/libmcrypt-2.5.8/libltdl# ./configure Cenable-ltdl-install
configure: warning: Cenable-ltdl-install: invalid host type
creating cache ./config.cache
configure: warning: *** The top-level configure must select either
configure: warning: *** AC_LIBLTDL_INSTALLABLE or AC_LIBLTDL_CONVENIENCE.
configure: error: *** Maybe you want to --enable-ltdl-install?
chlumsan:/phptest/libmcrypt-2.5.8/libltdl# make && make install
make: *** No targets specified and no makefile found.  Stop.
chlumsan:/phptest/libmcrypt-2.5.8/libltdl# make && make install
make: *** No targets specified and no makefile found.  Stop.
chlumsan:/phptest/libmcrypt-2.5.8/libltdl# cd /phptest/libmcrypt-2.5.8
chlumsan:/phptest/libmcrypt-2.5.8# /sbin/ldconfig
/sbin/ldconfig: /usr/lib/libmysqlclient_r.so.16 is not a symbolic link

/sbin/ldconfig: /usr/lib/libmysqlclient.so.16 is not a symbolic link

chlumsan:/phptest/libmcrypt-2.5.8# /usr/lib/libmysqlclient_r.so.16 is not a symbolic link
Segmentation fault
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-4-20 20:20:04 | 显示全部楼层
configure: warning: *** The top-level configure must select either
configure: warning: *** AC_LIBLTDL_INSTALLABLE or AC_LIBLTDL_CONVENIENCE.
configure: error: *** Maybe you want to --enable-ltdl-install?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-4-20 20:34:28 | 显示全部楼层
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-mbstring --enable-ftp --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --enable-magic-quotes --with-mysql=/usr/local/mysql --with-pear --enable-sockets --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --with-zlib --enable-sysvsem --enable-sysvshm --with-libxml-dir=/usr  --with-iconv-dir=/usr/local --with-xmlrpc --enable-xml --enable-shmop --enable-zip --with-mhash --with-mcrypt --enable-discard-path --enable-bcmath --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --with-openssl

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

 楼主| 发表于 2011-4-20 21:03:49 | 显示全部楼层
make之后

ext/gd/libgd/gdkanji.o: In function `do_convert':
/root/php-5.2.14/ext/gd/libgd/gdkanji.c:350: undefined reference to `libiconv_open'
/root/php-5.2.14/ext/gd/libgd/gdkanji.c:365: undefined reference to `libiconv'
/root/php-5.2.14/ext/gd/libgd/gdkanji.c:381: undefined reference to `libiconv_close'
ext/iconv/iconv.o: In function `_php_iconv_appendl':
/root/php-5.2.14/ext/iconv/iconv.c:348: undefined reference to `libiconv'
/root/php-5.2.14/ext/iconv/iconv.c:385: undefined reference to `libiconv'
ext/iconv/iconv.o: In function `_php_iconv_mime_decode':
/root/php-5.2.14/ext/iconv/iconv.c:1354: undefined reference to `libiconv_open'
/root/php-5.2.14/ext/iconv/iconv.c:1823: undefined reference to `libiconv_close'
/root/php-5.2.14/ext/iconv/iconv.c:1826: undefined reference to `libiconv_close'
/root/php-5.2.14/ext/iconv/iconv.c:1465: undefined reference to `libiconv_close'
/root/php-5.2.14/ext/iconv/iconv.c:1468: undefined reference to `libiconv_open'
ext/iconv/iconv.o: In function `_php_iconv_strlen':
/root/php-5.2.14/ext/iconv/iconv.c:603: undefined reference to `libiconv_open'
/root/php-5.2.14/ext/iconv/iconv.c:626: undefined reference to `libiconv'
/root/php-5.2.14/ext/iconv/iconv.c:660: undefined reference to `libiconv_close'
ext/iconv/iconv.o: In function `_php_iconv_substr':
/root/php-5.2.14/ext/iconv/iconv.c:723: undefined reference to `libiconv_open'
/root/php-5.2.14/ext/iconv/iconv.c:747: undefined reference to `libiconv'
/root/php-5.2.14/ext/iconv/iconv.c:802: undefined reference to `libiconv_close'
/root/php-5.2.14/ext/iconv/iconv.c:806: undefined reference to `libiconv_close'
/root/php-5.2.14/ext/iconv/iconv.c:755: undefined reference to `libiconv_open'
ext/iconv/iconv.o: In function `php_iconv_string':
/root/php-5.2.14/ext/iconv/iconv.c:441: undefined reference to `libiconv_open'
/root/php-5.2.14/ext/iconv/iconv.c:453: undefined reference to `libiconv'
/root/php-5.2.14/ext/iconv/iconv.c:467: undefined reference to `libiconv'
/root/php-5.2.14/ext/iconv/iconv.c:478: undefined reference to `libiconv_close'
ext/iconv/iconv.o: In function `_php_iconv_strpos':
/root/php-5.2.14/ext/iconv/iconv.c:851: undefined reference to `libiconv_open'
/root/php-5.2.14/ext/iconv/iconv.c:879: undefined reference to `libiconv'
/root/php-5.2.14/ext/iconv/iconv.c:993: undefined reference to `libiconv_close'
ext/iconv/iconv.o: In function `_php_iconv_mime_encode':
/root/php-5.2.14/ext/iconv/iconv.c:1043: undefined reference to `libiconv_open'
/root/php-5.2.14/ext/iconv/iconv.c:1057: undefined reference to `libiconv_open'
/root/php-5.2.14/ext/iconv/iconv.c:1176: undefined reference to `libiconv'
/root/php-5.2.14/ext/iconv/iconv.c:1128: undefined reference to `libiconv'
/root/php-5.2.14/ext/iconv/iconv.c:1160: undefined reference to `libiconv'
/root/php-5.2.14/ext/iconv/iconv.c:1319: undefined reference to `libiconv_close'
/root/php-5.2.14/ext/iconv/iconv.c:1228: undefined reference to `libiconv'
/root/php-5.2.14/ext/iconv/iconv.c:1259: undefined reference to `libiconv'
/root/php-5.2.14/ext/iconv/iconv.c:1316: undefined reference to `libiconv_close'
/root/php-5.2.14/ext/iconv/iconv.c:1303: undefined reference to `libiconv'
ext/iconv/iconv.o: In function `php_iconv_stream_filter_dtor':
/root/php-5.2.14/ext/iconv/iconv.c:2465: undefined reference to `libiconv_close'
ext/iconv/iconv.o: In function `php_iconv_stream_filter_append_bucket':
/root/php-5.2.14/ext/iconv/iconv.c:2616: undefined reference to `libiconv'
/root/php-5.2.14/ext/iconv/iconv.c:2615: undefined reference to `libiconv'
/root/php-5.2.14/ext/iconv/iconv.c:2537: undefined reference to `libiconv'
ext/iconv/iconv.o: In function `php_iconv_stream_filter_ctor':
/root/php-5.2.14/ext/iconv/iconv.c:2491: undefined reference to `libiconv_open'
ext/xmlrpc/libxmlrpc/encodings.o: In function `convert':
/root/php-5.2.14/ext/xmlrpc/libxmlrpc/encodings.c:73: undefined reference to `libiconv_open'
/root/php-5.2.14/ext/xmlrpc/libxmlrpc/encodings.c:81: undefined reference to `libiconv'
/root/php-5.2.14/ext/xmlrpc/libxmlrpc/encodings.c:101: undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-15 09:51 , Processed in 0.031978 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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