Apr. 5th, 2010

And again.

Apr. 5th, 2010 01:55 pm
nonethefewer: (Default)
There's this script.

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?

And again.

Apr. 5th, 2010 01:55 pm
nonethefewer: (Default)
There's this script.

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?

Originally posted on Dreamwidth.

February 2022

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728     

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 29th, 2025 11:44 pm
Powered by Dreamwidth Studios