Localsettings.php not Found by non-admin users

Jump to: navigation, search

For any user that is not an admin on the machine whenever they try to open a MediaWiki site they get a "Localsettings.php not found. Please set up the wiki first." error message. The site has been configured, and the localsettings.php file moved to the root directory. I have even tried removing teh mw-config folder altogether and my users still hit this error. Any suggstions on how to resolve this problem?

MediaWiki 1.18.2 Windows Server 2008 R2 IIS 7.5 MySQL Community Edition 5.5.23 PHP 5.4.0

Timberock (talk)17:48, 24 April 2012

Hi,

the file must be named LocalSettings.php (be aware of upper and lower case). Make sure that file permissions are set correctly.

88.130.123.18121:07, 24 April 2012

The casing was correct and permissions matched that of index.php and all other files in my site directory. I tracked this down to havng Windows Authentication enabled. When I disable Windows Authentication everythign works but then the server fails to populate the Remote_User Server variable. Without this info I am unable to utilize the AutomaticRemoteUser extension to create accounts for my domain users.

What I cannot figure out is why using Windows Authentication prevents locating the LocalSettings.php file. When I enable Windows Authentication I do not modify security permissions so I am stumped on what the blocker is.

131.107.0.10921:47, 24 April 2012

The problem is an issue of whether anonymous users can access your web server's LocalSettings.php.

In a domain environment my advice is to create a user for the IIS server to run under, tell IIS to operate the website under that user account, and grant at least "read" permissions for that account for your web directory (not just your individual file, especially since extensions must access the /extensions directory). "write" and "modify" permissions will be required if you intend to allow file uploads or to use Special:LockDB.

Jasper Deng (talk)01:16, 25 April 2012

I found the root cause of the problem - when I switched over to using Windows Authentication the security group that gated user access did not have the same permissions as the IIS_IUSRS group that controls anonymous access. I had to mirror the access levels of IIS_USRS to my domain security group both in my MediaWiki site folder and the PHP folder. Once done the settings file is found and the site loads as expected.

Timberock (talk)17:26, 26 April 2012

Timberock,

I'm seeing the same thing with an installation of mine. We're using the Auth_Remoteuser extension and when we ported to a Windows 2008 R2 system our admin accounts could see the wiki just fine, but end-users were getting the "LocalSettings.php file not found" screen.

Your fix that you mentioned is very general in how you stated it, so I want to confirm, in more specific language, what you did to fix this:

You set ACL settings to match both in the Mediawiki site root AND for your PHP installation folder (Most often found in the 32-bit program file folder c:\Program Files (x86)\PHP) to the same permissions settings (specifically for the IIS_IUSRS group to match for both web root and PHP folder). Correct?

Tomcat59 (talk)17:04, 30 April 2013