Mar 23 2007

Drupal - can't delete or modify files folder


Filed under: Content Management Systems » Drupal,
Tools:

Having trouble deleting files or folders on Drupal site?

This is probably a result of the files or folders being created by Drupal, and your user account not having ownership of them anymore.  To restore ownership, simply execute the following code within a Drupal page (ie. copy and paste this into a Drupal page, set input format to "PHP", and save the page).  Be sure to delete the page as soon as you are done!

<?php
`chmod -R a+w directory/subdirectory`;
?>
A common place this snippet applies to is the files/images directory.

IMCE

IMCE will typically lock directories it uses within files.  You can use the above method to release these directories.  This is useful when you want to mass upload images via FTP for later use in the IMCE image editor (together with FCKEditor, for example).

Average: 5 (3 votes)
Select your preferred way to display the comments and click "Save settings" to activate your changes.

Thanks

I've been looking for this for a while now. Thanks

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

Captcha
This question is used to make sure you are a human visitor and to prevent spam submissions.
Copy the characters (respecting upper/lower case) from the image.