Topic on Project:Support desk

open_basedir to folder i did not found...

5
JanTappenbeck (talkcontribs)

hi ! in php_errors.log i get following message "...file_exists(): open_basedir restriction in effect. File(C:\mediawiki/../wmf-config/wikimedia-mode) ...doMaintenance.php on line 80" but in my installation i did not found a folder like wmf-config/wikimedia-mode - can someone help me to fix this mistake ?

regards Jan

Ciencia Al Poder (talkcontribs)

search in the LocalSettings.php and other files you may have modified/downloaded from Wikimedia to find where is "wmf-config" mentioned, and figure out if that makes sense.

85.233.12.114 (talkcontribs)

hi ! I search and found in ..\maintenance\doMaintenance.php following code I did not modify:

if ( defined( 'MW_CONFIG_CALLBACK' ) ) {
	# Use a callback function to configure MediaWiki
	call_user_func( MW_CONFIG_CALLBACK );
} else {
	if ( file_exists( "$IP/../wmf-config/wikimedia-mode" ) ) {
		// Load settings, using wikimedia-mode if needed
		// @todo FIXME: Replace this hack with general farm-friendly code
		# @todo FIXME: Wikimedia-specific stuff needs to go away to an ext
		# Maybe a hook?
		global $cluster;
		$cluster = 'pmtpa';
		require "$IP/../wmf-config/wgConf.php";
	}
	// Require the configuration (probably LocalSettings.php)
	require $maintenance->loadSettings();
}

is information a good help to fix this problem ?

regards Jan

Ciencia Al Poder (talkcontribs)

That file isn't the problem.

Do a grep of the entire mediawiki installation directory. You could use the search in files command of various text editors, like Notepad++, to do this, since Windows search sucks.

JanTappenbeck (talkcontribs)

hi !

cange code to

if ( defined( 'MW_CONFIG_CALLBACK' ) ) {
	# Use a callback function to configure MediaWiki
	call_user_func( MW_CONFIG_CALLBACK );
} else {
	// Require the configuration (probably LocalSettings.php)
	require $maintenance->loadSettings();
}

(Version 1.24) will fix the message.

regards Jan

Reply to "open_basedir to folder i did not found..."