Saturday, 28 September 2013

After reboot why wont my server allow my script to copy files?

After reboot why wont my server allow my script to copy files?

I have a server running centos, which hadn't been restarted in 540 days.
We had to put a secure cert on it, and rebooted.
There was a php script that was running, and has been for years which
copied files selected by a web application from their source, threw them
into a zip file and forced downloads along with an informational PDF.
Since that reboot, we have tried running the script, and although the zip
file and the pdf are created, and the pdf is put into the zip, none of the
images selected gets copied from the origin to the folder or pdf.
I guessed a permissions issue, but there are no errors on the logs that
say otherwise. The user for the files are all marked apache/apache which
is the same as the folder.
So I guess I am asking, would have permissions have changed on reboot
somewhere, or could they get assigned somewhere on reboot?
Alternatively, is there something else I should be looking for? The images
are moved and copied using gzcompress in a php script.

No comments:

Post a Comment