|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
I am attempting to setup a file upload and I am getting an error message which is stumping me We are using Apache on Redhat 6.2
Here is the error message we get when we attempt to upload an image Warning: Unable to create '/home/jj/picparty.com/users/ss/tmp/phproJvoQ': No such file or directory in /home/jj/picparty.com/add.php3 on line 6 failed to copy file upload report upload tmp file: file name: target file name: target directory: c:apachehtdocstmp file size: file type: Thanks for any feedback. I believe the problem is buried within our server. DD |
|
#2
|
|||
|
|||
|
What does line 6 of add.php3 say?
|
|
#3
|
|||
|
|||
|
It's most probably just a file/directory permission thing. The PHP process executes server commands under the username and group 'nobody', so unless your directory is world-writeable OR is chowned to nobody:nobody, PHP will be unable to upload a file. For better security, I recommend the second choice; just create a directory for upload and chown it to nobody:nobody.
|
|
#4
|
|||
|
|||
|
>>so unless your directory is world-writeable OR is chowned to nobody:nobody
Yes. So at /home/jj/picparty.com/users/ss/tmp/, the "tmp" directory needs to be chmodded 757 so "nobody" has the write permission. Please note that to copy to, to need write permission. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > PHP Server Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|