Topic on Project:Support desk

[RESOLVED] IIS7/Win7 - Problem by open_basedir

3
85.233.12.114 (talkcontribs)

Hi !

when I upload a image I get following message (independent of the upload-extension):

Warning: is_file(): open_basedir restriction in effect. File(C:\Windows\Temp\phpDF6C.tmp) is not within the allowed path(s): (C:\Windows\Temp;C:\Windows\TEMP;C:\inetpub\wwwroo t;C:\mediawiki;C:\mysqldumper) in C:\mediawiki\includes\filebackend\FSFile.php on line 60

Notice: Undefined index: file-mime in C:\mediawiki\includes\upload\UploadBase.php on line 463

Warning: fopen(): open_basedir restriction in effect. File(C:\Windows\Temp\phpDF6C.tmp) is not within the allowed path(s): (C:\Windows\Temp;C:\Windows\TEMP;C:\inetpub\wwwroo t;C:\mediawiki;C:\mysqldumper) in C:\mediawiki\includes\upload\UploadBase.php on line 379

Warning: fopen(C:\Windows\Temp\phpDF6C.tmp): failed to open stream: Operation not permitted in C:\mediawiki\includes\upload\UploadBase.php on line 379

Warning: fread() expects parameter 1 to be resource, boolean given in C:\mediawiki\includes\upload\UploadBase.php on line 380

Warning: fclose() expects parameter 1 to be resource, boolean given in C:\mediawiki\includes\upload\UploadBase.php on line 381

Warning: fopen(): open_basedir restriction in effect. File(C:\Windows\Temp\phpDF6C.tmp) is not within the allowed path(s): (C:\Windows\Temp;C:\Windows\TEMP;C:\inetpub\wwwroo t;C:\mediawiki;C:\mysqldumper) in C:\mediawiki\includes\upload\UploadBase.php on line 997

Warning: fopen(C:\Windows\Temp\phpDF6C.tmp): failed to open stream: Operation not permitted in C:\mediawiki\includes\upload\UploadBase.php on line 997

Warning: fread() expects parameter 1 to be resource, boolean given in C:\mediawiki\includes\upload\UploadBase.php on line 998

Warning: fclose() expects parameter 1 to be resource, boolean given in C:\mediawiki\includes\upload\UploadBase.php on line 999

Warning: fopen(): open_basedir restriction in effect. File(C:\Windows\Temp\phpDF6C.tmp) is not within the allowed path(s): (C:\Windows\Temp;C:\Windows\TEMP;C:\inetpub\wwwroo t;C:\mediawiki;C:\mysqldumper) in C:\mediawiki\includes\utils\ZipDirectoryReader.php on line 148

Warning: fopen(C:\Windows\Temp\phpDF6C.tmp): failed to open stream: Operation not permitted in C:\mediawiki\includes\utils\ZipDirectoryReader.php on line 148

could someone have an idea?

reagards Jan :-)

88.130.93.83 (talkcontribs)

This in fact is an open_basedir problem. Anyway, the path to the temp/ folder and what you have in open_basedir seems to be the same. Paths also are separated correctly by ";" as they should be...should work...

People sometimes use the forward slash also when defining the open_basedir path on Windows. Does it work, when you define the paths e.g. like C:/Windows/Temp?

JanTappenbeck (talkcontribs)

hi !

I fix the upload-problem by the side https://www.drupal.org/node/1580216

I set following parameter in php.ini and reset II7:

upload_tmp_dir =c:\temp

and add this path to open_basedir.

now the upload runs without mistake.

reagards Jan :-)

Reply to "[RESOLVED] IIS7/Win7 - Problem by open_basedir"