LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-14-2004, 07:16 AM   #1
Niels@debian
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.


Hello,

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 :

Code:
; 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 :

Code:
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, 09:33 AM   #2
Technoslave
Member
 
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, 03:10 PM   #3
sopiaz57
Member
 
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
 
  


Reply


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 10:50 PM
Apache 1.3.28/PHP 4.3.3 can't write temp file tm_burningdog Linux - Software 0 06-10-2004 01:49 PM
what do I do with /tmp dir? Bruce Hill Linux - Newbie 10 11-05-2003 09:45 PM
eroaster tmp file write davidschob Linux - Software 4 11-05-2003 09:36 AM
a question of tmp dir for solaris/win cybercop12us Solaris / OpenSolaris 4 01-08-2003 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:51 AM.

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