LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache/PHP can't write to /tmp dir. (https://www.linuxquestions.org/questions/linux-software-2/apache-php-cant-write-to-tmp-dir-217474/)

Niels@debian 08-14-2004 07:16 AM

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.

...

Technoslave 08-17-2004 09:33 AM

*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

sopiaz57 05-25-2005 03:10 PM

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


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