Hi all. I am tweaking my php.ini file and I do not understand the bolded text below...
http://phpsec.org/projects/phpsecinf...d_tmp_dir.html
Quote:
upload_tmp_dir
Test Description
Checks if the current upload_tmp_dir is a world readable or writable folder, and if it matches the common UNIX system temp directory.
Security Implications
upload_tmp_dir allows you to specify where uploaded files should be saved until the handling script moves them to a more permanent location. If this file is within the document root of the web site and/or accessible to system users other than PHP's user, it could be modified or overwritten while PHP is processing it. By default upload_tmp_dir is set to the system's standard temporary directory, which can typically be accessed by all system users.
Recommendations
Set upload_tmp_dir to a folder that is:
- outside the document root of your web site
- not readable or writable by any other system users
You can set upload_tmp_dir in the php.ini file:
; Set upload_tmp_dir to a safe location
upload_tmp_dir = /var/www/foo.bar/sessions
The setting can also be applied in apache's httpd.conf file, or an .htaccess file:
# Set upload_tmp_dir to a safe location
php_value upload_tmp_dir /var/www/foo.bar/sessions
Questions:
1.) What does the bolded text mean, and how do I do that?
**NOTE: I don't have VPS Root access, and am hoping this can be done using my regular account via SSH.
2.) Where would be a safe place to put these temporary files?
Sincerely,
Rob