Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-14-2004, 08:16 AM   #1
LQ Newbie
Registered: Aug 2004
Location: Laval, FR
Distribution: Debian Sarge 2.6.9
Posts: 25

Rep: Reputation: 15
Apache/PHP can't write to /tmp dir.


I've made an upload script so people can post their photo on my site but i'm currently facing a problem.

The script displays no error and return the name of the tmp file but the file has not been written.

/tmp is empty of php generated files. :/

php.ini Upload config :

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /tmp/

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

;Maximum size of POST data that PHP will accept.
post_max_size = 8M
/tmp permissions :

drwxrwxrwt   15 root root   4096 2004-08-14 13:57 tmp
Nothing in apache error log or php log

Apache is not chrooted and runs as www-data.

So for sure I get an error when trying to create an image from the tmp file.

Old 08-17-2004, 10:33 AM   #2
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
*shrug* make sure full logging is turned on. tail -f all the log files, not just error.log or whatever. Maybe change /tmp/ to just /tmp
Old 05-25-2005, 04:10 PM   #3
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
any answer

Hey what happened with this, I have the same problem basically I set my upload_tmp_dir = /tmp/uploads with apache as owner

I look in the directory during large file uploads and see nothing.

Let me know if you have any ideas


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache/PHP - can't write file Influx Linux - Software 3 10-23-2005 11:50 PM
Apache 1.3.28/PHP 4.3.3 can't write temp file tm_burningdog Linux - Software 0 06-10-2004 02:49 PM
what do I do with /tmp dir? Bruce Hill Linux - Newbie 10 11-05-2003 10:45 PM
eroaster tmp file write davidschob Linux - Software 4 11-05-2003 10:36 AM
a question of tmp dir for solaris/win cybercop12us Solaris / OpenSolaris 4 01-08-2003 04:22 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration