By DarkmasterFG on
I have a big problem.
I installed both image and img_assist modules, and all works.
The problem is that they created a temp/ directory, and I can't delete files inside it.
I tried via cPanel and ftp (those are the only access I have for my site).
I can't change permissions on those files.
I don't have root access to the machine, nor an SSH access.
What should I do, what could be the problem?
Comments
The problem is that the
The problem is that the owner of files created by Drupal is not you but the web server (user 'apache' or 'nobody').
So, you need to write, upload and run a php script which will work as user apache, to make those files and directories writable for everyone (including you).
with the file name in single quotes. Or for a directory
Then you will be able to delete them.
- Another way is to use a more general script which allows you to work directly as user apache, typing unix commands (http://mgeisler.net/php-shell).
- Another way is to ask your host's tech support to delete them for you. I am sure they are familiar with this problem.
----
Edited to add: Hmm... there's an idea for a Drupal files cleanup module...
Problem solved.
You are right, I deleted them with a php-script and I had no problems.
Thank's.
by the way...
Why would one want to delete files (unless for backup purposes) in /temp directory? Isn't this deletion made automatically by drupal after the file is not required anymore?
Durval Tabach
No, after the image module
No, after the image module make its elaboration, the files ./files/images/temp remains filled with the images.
You have to delete them either manually or via cron.
I noticed that cron.php deletes them too, luckily.
So, it was not an issue, I am sorry, but I have to admit I still don't understand how drupal works, i find phpbb not as complicated as Drupal (phpbb was the main core of the site, before Drupal install).
Cron.php Deletes?
I find that cron.php isn't deleting the /temp files; that's why every hour I have error messages in Drupal admin. And, of course, as I'm not the owner ('nobody') I can't change the permissions to allow myself or cron.php to delete the files. Is this a bug in the image/img_assist module setup? Is my only recourse to ask my host to change the permissions on this directory?
If we have to do with the
If we have to do with the files/images/temp directory in a working site, you are right.
But sometimes you want to change something with the placement of files/images on a development or test site, or just to delete a whole test installation, and these files which you don't own can be annoying.
I think that any piece of
I think that any piece of well designed software should clean its elaboration residuals, before terminating.
But this is not always the case.
Personally sometimes I think features as brackets: when I open one, I have to close it somewhere, and all that is in between, should belong to it. :)
I used to be a professional windows (non-php) programmer, a few years ago.