Thread:Project:Support desk/upload tmp dir - MediaWiki ignores php specified path

MediaWiki 1.17wmf1

PHP 5.2.12 (apache)

MySQL 5.0.90-log

There is a problem with a temporary folder path resolving.

Php on server side sets this directive as following:

upload_tmp_dir	= /home/XXXXX/hdlwiki.com/tmp

and

open_basedir	= /home/XXXXX/

However Wiki ignores these directives and tries to use /var/tmp

which is out of the allowed path.

This warning I received during Wiki installation:

Warning: is_dir [function.is-dir]: open_basedir restriction in effect.

File(/tmp) is not within the allowed path(s): (/home/XXXXX/) in /home/XXXXX/hdlwiki.com/www/config/Installer.php on line 474 Warning: Your session.save_path value (/tmp) appears to be invalid or is not writable.

PHP needs to be able to save data to this location for correct session operation. As a result I cannot upload files by url. The system returns an error: Warning: tempnam [function.tempnam]: open_basedir restriction in effect.

File(/var/tmp/) is not within the allowed path(s): (/home/XXXXX/)in/home/XXXXX/hdlwiki.com/www/includes/upload

/UploadFromUrl.php on line 101

What can be a solution for such problem.