Skip to main content

Can't delete Drupal "sites" directory/subfolders/files

Comments

6 comments

  • cPanelMichael
    Hello :) The files likely have ownership set to "nobody" if you are using DSO as your PHP handler. You should access your system via SSH as "root" and update the ownership on those subdirectories and file beneath them to the account username. Or, you could just delete the files/directories via SSH as "root". Thank you.
    0
  • thoughtcat
    ]Hello :) The files likely have ownership set to "nobody" if you are using DSO as your PHP handler. You should access your system via SSH as "root" and update the ownership on those subdirectories and file beneath them to the account username. Or, you could just delete the files/directories via SSH as "root". Thank you.

    Thanks, I'm not sure how to access my system via SSH, but I ended up asking my hosting company to help out and they sorted it, probably doing what you suggested.
    0
  • thoughtcat
    Hi again, actually I have now worked out how to access via SSH (via /http://www.inmotionhosting.com/support/website/ssh/how-to-login-ssh) but it's proving difficult to update the ownership on those subdirectories and file beneath them to the account username
    . If I log in as "root" as suggested I can't see how to navigate to the particular account I want. If I log in using the username and password of the actual account I can access the directories but trying to change the ownership gives "operation not permitted" errors. I am referring to this Drupal files page for info: /https://www.drupal.org/node/394704
    0
  • cPanelMichael
    Your hosting provider will need to complete this for you if you do not have root access to the server. Otherwise, with root, you can simply browse to the account with a command such as: cd /home/$username/ Thank you.
    0
  • thoughtcat
    Thanks so much :) I knew it was something simple like that ;) Did this and was able to finally change the ownership of my files folder and now all is good. Cheers!
    0
  • cPanelMichael
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.