无法从托管帐户中删除settings.php
我在我的托管帐户的子域上安装了 Drupal 6.2。现在我尝试删除托管目录上的 Drupal 文件夹,但我无法执行此操作。我遇到位于 drupal>>sites>>default
中的 settings.php 文件的访问被拒绝错误
我尝试设置该文件的读写权限,然后设置目录和所有内容,但没有任何效果。还尝试重命名文件,但也没有帮助。这是什么原因以及如何删除该文件?
I installed Drupal 6.2 on a sub domain in my hosting account. Now I am trying to delete the Drupal folder on my hosting directory but I am unable to do so. I am getting access denied error to settings.php file located in drupal>>sites>>default
I tried setting the permission read and write for this file, then directory and everything, but nothing worked. Also tried renaming the file, but it didn't help either. What is the reason and how can I delete this file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想你应该更改文件的所有者/所有者组。
我认为文件是在 root 或 www-data 或类似用户(apache 用户)下编写的,并且您试图从不同用户中删除它?
。 chown 命令会有所帮助。
但是,如果您可以运行 sudo,而且我想您可以,因为更改了文件权限,
就跑
I guess you should change owner/owner group of the file.
I think file was written under root or www-data or similar user (apache user), and you're trying to delete it from different user?
. chown command will help.
However, if you can run sudo, and I guess you can, because of changing files perms,
just run