speedy
05-29-2007, 06:54 AM
This can be done by adding upload_tmp_dir /tmp into php.ini.
It is usually found in /etc directory, but to be sure, type
locate php.ini to find our for sure where yours is.
You can easily find out if you have the upload temp dir set to anything by typing:
cat /etc/php.ini | grep upload_tmp_dir
if it comes back with only
;upload_tmp_dir =
Then go into the file
nano -w /etc/php.ini
And then press Ctrl+w and type upload_tmp_dir once you find the line, uncomment the line and change it to
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /tmp
Restart apache
/sbin/service httpd restart
It is usually found in /etc directory, but to be sure, type
locate php.ini to find our for sure where yours is.
You can easily find out if you have the upload temp dir set to anything by typing:
cat /etc/php.ini | grep upload_tmp_dir
if it comes back with only
;upload_tmp_dir =
Then go into the file
nano -w /etc/php.ini
And then press Ctrl+w and type upload_tmp_dir once you find the line, uncomment the line and change it to
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /tmp
Restart apache
/sbin/service httpd restart
