Welcome to WebmasterWorld Guest from 22.214.171.124
I also have cron jobs that upload pictures, and purge the database.
The problem is that my sever company have Apache running as nobody, and all my crons run as 'scott' - this means when someone upload stuff through the web, I can not delete it with cron.
their solution was to use phpsuexec - did that and found out you can not run APC or Eaccelerator that way.
So I asked them - how do all the other sites in the world have users upload pics and have cron purge the system. They just told me "there is software out there to do that" that did not really help me much.
Any ideas? They say if they run apache as 'scott' then all files will be writeable by all web users using apache and this is a security risk.
I have a managed dedicated.
Any ideas on what to do next?
For example, when you're upload program stores the file, it's owned by "nobody". Right after saving the file, have it set the permissions to 666. This makes it writeable by other users on the system. Then when a cron job owned by "scott" comes along, it has permission to delete the uploaded files owned by "nobody".
I happen to do this in Perl scripts (which is another forum). How you do this just depends on how your upload program is written.