当file upload时,PureFTPD无法列出Web根目录

我终于向前迈出了一步,并签署了一个VPS服务器来换取我过时的共享主机帐户。 我在DigitalOcean的VPS上运行Ubuntu 14.04 x32。 在VPS之上我有Apache,PHP,MySQL,PureFTPD和ISPConfig 3控制面板。 一切正常,服务器显示默认页面,DNS设置正确。

但是,当我尝试从以前的共享主机帐户上传Wordpress博客时,Filezilla变得无法列出Web根目录的内容,如下所示:

Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- Response: 220-You are user number 1 of 50 allowed. Response: 220-Local time is now 05:23. Server port: 21. Response: 220-This is a private system - No anonymous login Response: 220-IPv6 connections are also welcome on this server. Response: 220 You will be disconnected after 15 minutes of inactivity. Command: USER bob Response: 331 User bob OK. Password required Command: PASS ********** Response: 230 OK. Current restricted directory is / Command: OPTS UTF8 ON Response: 200 OK, UTF-8 enabled Status: Connected Status: Retrieving directory listing... Command: CWD /web Response: 250 OK. Current directory is /web Command: TYPE I Response: 200 TYPE is now 8-bit binary Command: PASV Response: 227 Entering Passive Mode (178,62,178,xx,70,202) Command: MLSD Response: 150 Accepted data connection Response: 226-Options: -a -l Response: 226 33 matches total Error: Connection timed out Error: Failed to retrieve directory listing 

该文件夹的内容如下所示:

 root@otis:/var/www/clients/client1/web2/web# ls -l total 5140 drwxr-xr-x 2 web2 client1 4096 Aug 16 04:47 cgi-bin -rw-r--r-- 1 web2 client1 637944 Aug 16 04:47 error_log -rwxr-xr-- 1 web2 client1 7358 Aug 16 04:43 favicon.ico -rwxr-xr-- 1 web2 client1 1861 Aug 16 04:43 index.html -rw-r--r-- 1 web2 client1 418 Aug 16 04:47 index.php -rw-r--r-- 1 web2 client1 19545 Aug 16 04:47 license.txt drwxr-xr-x 6 web2 client1 4096 Aug 16 04:47 media -rw-r--r-- 1 web2 client1 7194 Aug 16 04:47 readme.html -rwxr-xr-- 1 web2 client1 14 Aug 16 04:43 robots.txt drwxr-xr-x 2 root root 4096 Aug 16 04:43 stats -rw-r--r-- 1 web2 client1 4896 Aug 16 04:47 wp-activate.php drwxr-xr-x 9 web2 client1 4096 Aug 16 04:48 wp-admin -rw-r--r-- 1 web2 client1 271 Aug 16 04:47 wp-blog-header.php -rw-r--r-- 1 web2 client1 4818 Aug 16 04:47 wp-comments-post.php -rw-r--r-- 1 web2 client1 3411 Aug 16 04:47 wp-config.php -rw-r--r-- 1 web2 client1 3087 Aug 16 04:47 wp-config-sample.php drwxr-xr-x 10 web2 client1 4096 Aug 16 04:49 wp-content -rw-r--r-- 1 web2 client1 2932 Aug 16 04:47 wp-cron.php drwxr-xr-x 12 web2 client1 4096 Aug 16 04:59 wp-includes -rw-r--r-- 1 web2 client1 2380 Aug 16 04:47 wp-links-opml.php -rw-r--r-- 1 web2 client1 2359 Aug 16 04:47 wp-load.php -rw-r--r-- 1 web2 client1 33407 Aug 16 04:47 wp-login.php -rw-r--r-- 1 web2 client1 8235 Aug 16 04:47 wp-mail.php -rw-r--r-- 1 web2 client1 11070 Aug 16 04:47 wp-settings.php -rw-r--r-- 1 web2 client1 25665 Aug 16 04:47 wp-signup.php -rw-r--r-- 1 web2 client1 4026 Aug 16 04:47 wp-trackback.php -rw-r--r-- 1 web2 client1 3032 Aug 16 04:47 xmlrpc.php 

这个错误在过去两天里让我疯狂,我甚至要抹去一切,重新开始从头开始,希望有一个百万分之一的打嗝不能合理解释。

今天我开始通过SSH逐个删除文件,看看哪个文件可以阻止目录列表。 看来,罪魁祸首是直接放在根目录中的文件:

 -rwxr-xr-- 1 web2 client1 7358 Aug 16 04:43 favicon.ico -rwxr-xr-- 1 web2 client1 1861 Aug 16 04:43 index.html -rw-r--r-- 1 web2 client1 418 Aug 16 04:47 index.php -rw-r--r-- 1 web2 client1 19545 Aug 16 04:47 license.txt -rw-r--r-- 1 web2 client1 7194 Aug 16 04:47 readme.html -rwxr-xr-- 1 web2 client1 14 Aug 16 04:43 robots.txt -rw-r--r-- 1 web2 client1 4896 Aug 16 04:47 wp-activate.php -rw-r--r-- 1 web2 client1 271 Aug 16 04:47 wp-blog-header.php -rw-r--r-- 1 web2 client1 4818 Aug 16 04:47 wp-comments-post.php -rw-r--r-- 1 web2 client1 3411 Aug 16 04:47 wp-config.php -rw-r--r-- 1 web2 client1 3087 Aug 16 04:47 wp-config-sample.php -rw-r--r-- 1 web2 client1 2932 Aug 16 04:47 wp-cron.php -rw-r--r-- 1 web2 client1 2380 Aug 16 04:47 wp-links-opml.php -rw-r--r-- 1 web2 client1 2359 Aug 16 04:47 wp-load.php -rw-r--r-- 1 web2 client1 33407 Aug 16 04:47 wp-login.php -rw-r--r-- 1 web2 client1 8235 Aug 16 04:47 wp-mail.php -rw-r--r-- 1 web2 client1 11070 Aug 16 04:47 wp-settings.php -rw-r--r-- 1 web2 client1 25665 Aug 16 04:47 wp-signup.php -rw-r--r-- 1 web2 client1 4026 Aug 16 04:47 wp-trackback.php -rw-r--r-- 1 web2 client1 3032 Aug 16 04:47 xmlrpc.php 

当我完成通过SSH删除上述文件时,目录列表恢复没有问题。 我不知道为什么会发生这种情况。 任何意见将不胜感激。

PS:.htaccess和error_log仍然在那里,目录列表与他们工作。

PPS:帐户运行PHP为Mod_PHP。

谢谢,鲍勃。