 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
April 11th, 2008, 09:47 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jun 2006
Posts: 39
| Removing uploads files
The PhotoPost /uploads/ directory keeps filling up with temporary files. I understand that they are deleted automatically if file permissions are set correctly. Can you guide me through correcting the problem? I am responsible for 3 PhotoPost installs.
|
| |
April 12th, 2008, 11:57 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
They will stay around for users having trouble processing the files or who abort upload. You can safely ftp to your gallery directory and remove all directories under uploads to clear the uploads.
|
| |
April 14th, 2008, 10:28 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jun 2006
Posts: 39
|
Are you sure about that? All three PP installs seem to collect these derelict files by the hundreds. I have been manually removing them, but in some cases it has caused PHP to choke up if I let it go too long, ("too many files" errors) which generates database errors. I got the feeling it was being caused by a file ownership/permissions problem or error I made in the install somewhere.
|
| |
April 15th, 2008, 07:37 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
if permissions are not correct or ownership it could prevent a file from being deleted sure. Uploads should be 777 as well as every directory under it
|
| |
April 19th, 2008, 07:19 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Jun 2006
Posts: 39
|
The problem is that when the uploads file directories are created, the ownership is apache/apache, while the uploads directory is not. Where is that apache/apache coming from? What is the creating file?
|
| |
April 19th, 2008, 09:23 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
That is coming from your server. As long as permissions are READ WRITE EXECUTE you should not have a problem but contact your host to be sure
|
| |
April 19th, 2008, 11:10 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Jun 2006
Posts: 39
|
1, I am the host. 2, if the permissions are apache/apache, that may be why they are not being deleted ---
3 out of 3 PhotoPost installs, different versions, two different servers, all piling up garbage that has to be manually cleaned, constantly. It's a pain. I'm asking what file/php is supposed to be doing the garbage collecting, because it simply isn't doing it.
|
| |
April 20th, 2008, 09:53 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
The file as soon as it is processed and moved to the data folder is deleted in uploads. If your files are not being deleted check your server error logs. We do a simple unlink command to delete the file from the uploads directory.
Different servers operate different depending on how they are setup but on my linux server i have directories created by apache and it does not create any issues as permissions are 777.
I am not a server tech which is why i stated to contact your host to look into it. You can see how we delete files by looking at uploadphoto or bulkupload php files.
|
| |
April 20th, 2008, 10:49 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Jun 2006
Posts: 39
|
I'll use this additional information (unlink, originating php file and the error log) and ask my Rackspace techs for suggestions and guidance. I'll let you know what I learn.
Thanks.
|
| |
April 21st, 2008, 07:55 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,788
|
Not a problem gonna be permissions i would think.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 06:37 AM. | |