And again.
Apr. 5th, 2010 01:55 pmThere's this script.
Part of it:
So the command, written out, would be:
When I run that at the command line:
* The collections* folder is owned by apache, and has 775 permissions.
* The site_invoices* folder is owned by apache, and has 775 permissions.
* The *.tiffg3 file is owned by apache, and has 644 permissions.
The oddest thing is, the very next command does the same damn thing, only with the *.pdf file, and that works perfectly.
(And it's not always for all files...? This script is so weird.)
How would I go about ensuring that the webpage has permissions to copy files?
Part of it:
$command = "cp " . $topLevelDir . $invoiceDir . $invoicePrefix . "*tiffg3 " . $collDir;
exec($command, $errmsg);
So the command, written out, would be:
cp /var/www/html/sitefolder/invoices/site_invoices2009-09-11/15551112345_12345-12*tiffg3 /var/www/html/sitefolder/invoices/collections2010-04-05/
When I run that at the command line:
cp: cannot create regular file `/var/www/html/sitefolder/invoices/collections2010-04-05/15551112345_12345-12.001.tiffg3': Permission denied
* The collections* folder is owned by apache, and has 775 permissions.
* The site_invoices* folder is owned by apache, and has 775 permissions.
* The *.tiffg3 file is owned by apache, and has 644 permissions.
The oddest thing is, the very next command does the same damn thing, only with the *.pdf file, and that works perfectly.
(And it's not always for all files...? This script is so weird.)
How would I go about ensuring that the webpage has permissions to copy files?