When a file upload script tried to copy the file (using PHP) to copy from /tmp to my folder for further processing. it said cannot open, permission denied
Anyone know what would block such a thing.
This happened right after a server crash but everything seems fine.
I would think php can use the /tmp folder with no problems.
Cannot copy file from TMP folder
Moderator: General Moderators
-
dwhswebhosting
- Forum Newbie
- Posts: 6
- Joined: Mon Jun 12, 2006 6:42 pm
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
-
dwhswebhosting
- Forum Newbie
- Posts: 6
- Joined: Mon Jun 12, 2006 6:42 pm
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Cannot copy file from TMP folder
It does not sound like the permission problem is with your /tmp directory (it rarely is). It sounds like the usual problem that the folder to which you are copying the file. Make sure the user that the webserver is running as has write permission to that folder.dwhswebhosting wrote:When a file upload script tried to copy the file (using PHP) to copy from /tmp to my folder for further processing. it said cannot open, permission denied
(#10850)
-
dwhswebhosting
- Forum Newbie
- Posts: 6
- Joined: Mon Jun 12, 2006 6:42 pm
-
dwhswebhosting
- Forum Newbie
- Posts: 6
- Joined: Mon Jun 12, 2006 6:42 pm
Re: Cannot copy file from TMP folder
Wow that was it, he had it at 755 but needed 777 for the destination folder.arborint wrote:It does not sound like the permission problem is with your /tmp directory (it rarely is). It sounds like the usual problem that the folder to which you are copying the file. Make sure the user that the webserver is running as has write permission to that folder.dwhswebhosting wrote:When a file upload script tried to copy the file (using PHP) to copy from /tmp to my folder for further processing. it said cannot open, permission denied
Thanks!