VPS侦探论坛

 找回密码
 注册
查看: 8566|回复: 6

军哥,升级lnmpa后,FTP登陆提示超时

[复制链接]
发表于 2011-4-27 17:26:35 | 显示全部楼层 |阅读模式

军哥,升级lnmpa后,FTP登陆提示超时
504 Gateway Time-out

提示504错误

是lnmp0.5时候安装的pureftpd
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-4-27 17:50:39 | 显示全部楼层

回复 1# 的帖子



我的也是这个问题,504 Gateway Time-out
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-4-27 18:19:24 | 显示全部楼层

看了一下是pureftpd管理面板代码的问题,他需要访问/etc/passwd,lnmpa又是限制访问目录。

需要修改/usr/local/apache/conf/extra/httpd-vhosts.conf 把php_admin_value open_basedir 里加上/etc/ 或者吧php_admin_value open_basedir 注释掉。

重启apache就行了。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-4-27 18:31:28 | 显示全部楼层



军哥,我不小心删除了pureftpd,然后按0.7的pureftpd.sh安装,安装完提示


./pureftpd.sh: line 116: /tmp/script.mysql: No such file or directory
rm: cannot remove `/tmp/script.mysql': No such file or directory
Install GUI User manager for PureFTPd...
Archive:  User_manager_for-PureFTPd_v2.1_CN.zip
   creating: ftp/
  inflating: ftp/CHANGELOG
  inflating: ftp/config.php
   creating: ftp/extra/
  inflating: ftp/extra/script.mysql
   creating: ftp/images/
  inflating: ftp/images/arrow_down.gif
  inflating: ftp/images/arrow_right.gif
  inflating: ftp/images/arrow_up.gif
  inflating: ftp/images/connect.gif
  inflating: ftp/images/connect_gray.gif
extracting: ftp/images/delete.gif
  inflating: ftp/images/delete_gray.gif
  inflating: ftp/images/edit.gif
  inflating: ftp/images/edit_gray.gif
  inflating: ftp/images/ftpuser.gif
  inflating: ftp/images/ftpuser_gray.gif
  inflating: ftp/images/header.png
  inflating: ftp/images/header_seperator.png
  inflating: ftp/images/header_seperator2.png
  inflating: ftp/images/help.gif
   creating: ftp/images/icons/
  inflating: ftp/images/icons/aca.png
extracting: ftp/images/icons/api.png
  inflating: ftp/images/icons/ascx.png
  inflating: ftp/images/icons/asmx.png
  inflating: ftp/images/icons/asp.png
  inflating: ftp/images/icons/aspx.png
  inflating: ftp/images/icons/avi.png
  inflating: ftp/images/icons/avs.png
extracting: ftp/images/icons/axt.png
  inflating: ftp/images/icons/bat.png
  inflating: ftp/images/icons/bmp.png
  inflating: ftp/images/icons/cab.png
  inflating: ftp/images/icons/cat.png
  inflating: ftp/images/icons/chm.png
  inflating: ftp/images/icons/cnf.png
  inflating: ftp/images/icons/config.png
  inflating: ftp/images/icons/cpl.png
  inflating: ftp/images/icons/crt.png
  inflating: ftp/images/icons/cs.png
  inflating: ftp/images/icons/csproj.png
  inflating: ftp/images/icons/csv.png
  inflating: ftp/images/icons/dbp.png
  inflating: ftp/images/icons/disco.png
  inflating: ftp/images/icons/dll.png
  inflating: ftp/images/icons/doc.png
  inflating: ftp/images/icons/dot.png
  inflating: ftp/images/icons/dpk.png
  inflating: ftp/images/icons/dpr.png
extracting: ftp/images/icons/dps.png
  inflating: ftp/images/icons/dtq.png
extracting: ftp/images/icons/dun.png
  inflating: ftp/images/icons/etp.png
  inflating: ftp/images/icons/exe.png
extracting: ftp/images/icons/fdb.png
extracting: ftp/images/icons/fnd.png
extracting: ftp/images/icons/fon.png
  inflating: ftp/images/icons/gif.png
  inflating: ftp/images/icons/hlp.png
  inflating: ftp/images/icons/hol.png
  inflating: ftp/images/icons/html.png
extracting: ftp/images/icons/htt.png
  inflating: ftp/images/icons/hxc.png
  inflating: ftp/images/icons/hxi.png
  inflating: ftp/images/icons/hxk.png
  inflating: ftp/images/icons/hxs.png
  inflating: ftp/images/icons/hxt.png
  inflating: ftp/images/icons/icm.png
  inflating: ftp/images/icons/ini.png
  inflating: ftp/images/icons/ins.png
  inflating: ftp/images/icons/iqy.png
  inflating: ftp/images/icons/its.png
  inflating: ftp/images/icons/jar.png
  inflating: ftp/images/icons/jbf.png
  inflating: ftp/images/icons/job.png
  inflating: ftp/images/icons/jpf.png
  inflating: ftp/images/icons/jpg.png
  inflating: ftp/images/icons/js.png
  inflating: ftp/images/icons/lnk.png
extracting: ftp/images/icons/mad.png
  inflating: ftp/images/icons/map.png
  inflating: ftp/images/icons/mapup.png
extracting: ftp/images/icons/mat.png
extracting: ftp/images/icons/mdb.png
  inflating: ftp/images/icons/mht.png
  inflating: ftp/images/icons/mml.png
  inflating: ftp/images/icons/mp3.png
  inflating: ftp/images/icons/msc.png
extracting: ftp/images/icons/msg.png
  inflating: ftp/images/icons/msi.png
  inflating: ftp/images/icons/ncd.png
  inflating: ftp/images/icons/nfo.png
  inflating: ftp/images/icons/none.png
  inflating: ftp/images/icons/ost.png
extracting: ftp/images/icons/otf.png
  inflating: ftp/images/icons/pas.png
  inflating: ftp/images/icons/pdf.png
  inflating: ftp/images/icons/pdi.png
extracting: ftp/images/icons/pfm.png
  inflating: ftp/images/icons/php.png
  inflating: ftp/images/icons/pif.png
  inflating: ftp/images/icons/pmc.png
extracting: ftp/images/icons/pot.png
  inflating: ftp/images/icons/ppk.png
  inflating: ftp/images/icons/ppt.png
extracting: ftp/images/icons/prf.png
  inflating: ftp/images/icons/psp.png
extracting: ftp/images/icons/pub.png
  inflating: ftp/images/icons/rar.png
  inflating: ftp/images/icons/rc.png
  inflating: ftp/images/icons/rct.png
  inflating: ftp/images/icons/rdp.png
  inflating: ftp/images/icons/refresh.png
  inflating: ftp/images/icons/reg.png
  inflating: ftp/images/icons/res.png
  inflating: ftp/images/icons/resx.png
  inflating: ftp/images/icons/sdl.png
  inflating: ftp/images/icons/sln.png
  inflating: ftp/images/icons/sql.png
  inflating: ftp/images/icons/suo.png
extracting: ftp/images/icons/swf.png
  inflating: ftp/images/icons/tdf.png
  inflating: ftp/images/icons/tdl.png
extracting: ftp/images/icons/theme.png
extracting: ftp/images/icons/tiff.png
  inflating: ftp/images/icons/ttf.png
  inflating: ftp/images/icons/txt.png
extracting: ftp/images/icons/url.png
  inflating: ftp/images/icons/vb.png
  inflating: ftp/images/icons/vbproj.png
  inflating: ftp/images/icons/vbs.png
extracting: ftp/images/icons/vcf.png
  inflating: ftp/images/icons/vsmacros.png
  inflating: ftp/images/icons/wab.png
extracting: ftp/images/icons/wpl.png
  inflating: ftp/images/icons/wri.png
  inflating: ftp/images/icons/wsc.png
  inflating: ftp/images/icons/xla.png
extracting: ftp/images/icons/xls.png
  inflating: ftp/images/icons/xml.png
  inflating: ftp/images/icons/xsd.png
  inflating: ftp/images/icons/xsl.png
  inflating: ftp/images/icons/xslt.png
  inflating: ftp/images/icons/xsn.png
extracting: ftp/images/icons/zip.png
  inflating: ftp/images/info.gif
  inflating: ftp/images/key.gif
  inflating: ftp/images/left.gif
  inflating: ftp/images/left_bottom.gif
  inflating: ftp/images/left_top.gif
  inflating: ftp/images/lock_closed.gif
  inflating: ftp/images/lock_open.gif
  inflating: ftp/images/login.gif
  inflating: ftp/images/new_ftpuser.gif
  inflating: ftp/images/right.gif
  inflating: ftp/images/right_bottom.gif
  inflating: ftp/images/right_top.gif
  inflating: ftp/images/top.gif
  inflating: ftp/images/user.gif
   creating: ftp/includes/
  inflating: ftp/includes/constants.php
  inflating: ftp/includes/files.php
  inflating: ftp/includes/login.php
  inflating: ftp/includes/wz_tooltip.php
  inflating: ftp/index.php
  inflating: ftp/install.php
   creating: ftp/language/
  inflating: ftp/language/bulgarian.php
  inflating: ftp/language/chinese.php
  inflating: ftp/language/dutch.php
  inflating: ftp/language/english.php
  inflating: ftp/language/french.php
  inflating: ftp/language/index.php
  inflating: ftp/language/italian.php
  inflating: ftp/language/japanese.php
  inflating: ftp/language/korean.php
  inflating: ftp/language/slovenian.php
  inflating: ftp/language/spanish.php
  inflating: ftp/readme.txt
   creating: ftp/style/
  inflating: ftp/style/default.css.php
  inflating: ftp/style/green.css.php
  inflating: ftp/style/orange.css.php
Modify parameters of GUI User manager for PureFTPd...
cp: `pureftpd' and `/root/pureftpd' are the same file
--2011-04-27 18:29:47--  http://soft.vpser.net/lnmp/ext/init.d.pureftpd
Resolving soft.vpser.net... 96.44.153.111
Connecting to soft.vpser.net|96.44.153.111|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1253 (1.2K) [application/octet-stream]
Saving to: `init.d.pureftpd'

100%[======================================>] 1,253       --.-K/s   in 0s

2011-04-27 18:29:47 (109 MB/s) - `init.d.pureftpd' saved [1253/1253]
=======================================================================
Starting pureftpd...
Starting Pure-FTPd: Can't open /usr/local/pureftpd/pure-ftpd.conf: No such file or directory
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-4-27 22:16:46 | 显示全部楼层

回复 3# 的帖子


军哥
这个/etc/加在哪里
php_admin_value open_basedir "/home/wwwroot:/tmp/:/var/tmp/:/proc/"
怎么改这个?

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

发表于 2011-4-28 09:36:23 | 显示全部楼层

php_admin_value open_basedir "/home/wwwroot:/tmp/:/var/tmp/:/proc/:/etc/"

这样就行,/home/wwwroot/最好不用放置网站
发表于 2011-5-25 17:02:47 | 显示全部楼层

遇到了同样问题已经解决,感谢~
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-14 12:39 , Processed in 0.027451 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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