This is starting to vex me. I recently decided to clear out my FTP, and stumbled across an old Wordpress install I forgot I had (oh yes, very security conscious me). Anyway, for some reason deleting the directory failed so I investigated to see what was causing the blockage and I've narrowed it down to a file in wp-content.
这开始让我烦恼。我最近决定清除我的FTP,偶然发现了一个旧的Wordpress安装,我忘了我曾经(哦,是的,非常注重安全意识)。无论如何,由于某种原因删除目录失败,所以我调查了看是什么导致了阻塞,我把它缩小到wp-content中的文件。
Now when I try to delete this file I can get two errors. I've tried in Windowx Explorer (FTP) and the Web Control Panel's File Manager. Here's some error shots:
现在,当我尝试删除此文件时,我可能会遇到两个错误。我在Windowx Explorer(FTP)和Web控制面板的文件管理器中尝试过。这是一些错误镜头:
Windows FTP http://i35.tinypic.com/4u9sud.jpg File manager http://i33.tinypic.com/28jxp0.jpg
Windows FTP http://i35.tinypic.com/4u9sud.jpg文件管理器http://i33.tinypic.com/28jxp0.jpg
As you can see my File manager thinks the file is a Symbolic Link. While it scares me that my web server is host to an obviously religoious artifact I'm also heavily confused by the situation.
如您所见,我的文件管理器认为该文件是符号链接。虽然令我害怕的是我的网络服务器是一个显然是宗教神器的东西,但我也很困惑。
- I've tried renaming the file.
- I've refreshed the FTP view.
- I've tried moving the file to another dir (which worked, no success on deletion though).
- I've tried editing the file and then deletion.
我试过重命名文件。
我刷新了FTP视图。
我已经尝试将文件移动到另一个目录(虽然有效,但删除没有成功)。
我已经尝试编辑该文件然后删除。
And I'm at a loss. Is there a special way to delete SymLinks? I've never heard of them, until now.
而我却不知所措。是否有一种删除SymLinks的特殊方法?直到现在我都没听说过他们。
edit
Oho Windows you really are a magician of sorts. I decided to take a look at my FTP via command prompt and guess what? The file doesn't exist. Whether ftp
ignores symlinks I don't know but I'm about to give up :P
Oho Windows你真的是一个魔术师。我决定通过命令提示符查看我的FTP并猜猜是什么?该文件不存在。 ftp是否忽略符号链接我不知道但是我要放弃了:P
Command Prompt View http://i34.tinypic.com/2cp6ekg.jpg
命令提示符查看http://i34.tinypic.com/2cp6ekg.jpg
1 个解决方案
#1
2
First of all, try emailing your webhost either for SSH-access or to remove the symlink for you.
首先,尝试通过电子邮件发送您的webhost以进行SSH访问或删除符号链接。
If you get SSH-access, use:
如果您获得SSH访问权限,请使用:
unlink index.php
Or if neither works: Create a PHP file there (for instance remove.php) that contains:
或者如果两者都不起作用:在那里创建一个PHP文件(例如remove.php),其中包含:
<?php unlink("./index.php") ?>
Then open that file in your browser, afterwards remove the remove.php file.
然后在浏览器中打开该文件,之后删除remove.php文件。
#1
2
First of all, try emailing your webhost either for SSH-access or to remove the symlink for you.
首先,尝试通过电子邮件发送您的webhost以进行SSH访问或删除符号链接。
If you get SSH-access, use:
如果您获得SSH访问权限,请使用:
unlink index.php
Or if neither works: Create a PHP file there (for instance remove.php) that contains:
或者如果两者都不起作用:在那里创建一个PHP文件(例如remove.php),其中包含:
<?php unlink("./index.php") ?>
Then open that file in your browser, afterwards remove the remove.php file.
然后在浏览器中打开该文件,之后删除remove.php文件。