Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old August 4th, 2000, 08:44 AM
deathdog deathdog is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: San Antonio
Posts: 4 deathdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old August 18th, 2000, 07:46 AM
EyesWideOpen EyesWideOpen is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 3 EyesWideOpen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
What does line 6 of add.php3 say?

Reply With Quote
  #3  
Old August 18th, 2000, 01:09 PM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 2 m 4 sec
Reputation Power: 43
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.

Reply With Quote
  #4  
Old August 18th, 2000, 03:34 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > PHP Server Problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway