Topic on Project:Support desk

[RESOLVED] LocalSettings.php not found.

20
Earthendawn (talkcontribs)

I am using MediaWiki 1.17.0 after installing on a Linux server and completing the entire install process and placing the LocalSettings.php file in the root directory I am receiving an error after clicking the go to your wiki link that says"LocalSettings.php not found". I placed the file in the folder specified and I don't understand why it would say this. I tried an install on localhost but it did the same thing. I even tried setting all permissions to 7777 and still nothing. I have it up at my site http://earthendawn.com and the wiki is going to be at http://mentalhealth.earthendawn.com/wiki. I placed the wiki inside of another directory so it is located inside of /mentalhealth(this an elgg instalation)/wiki. I would like to have the wiki inside of the other directory because I would like my site to show it as /wiki instead of going to a whole mew site and having to setup a new subdomain. any help with this error message would be great. I wouldn't think it should matter what directory I put it in but now I don't know. Thanks, Douglas

Earthendawn (talkcontribs)

Problem solved I did a fresh install and fixed it. Thanks folks.

83.249.248.9 (talkcontribs)

That doesn't really sound like a solution. I'm having this problem too, any other ideas?

85.9.122.119 (talkcontribs)

I have this problem too . how can I solving that

88.130.77.161 (talkcontribs)

You installed your wiki in a folder. In this folder you have several subfolders. Some of them are images/ extensions/ or skins/.

Put the LocalSettings.php file in the same folder, in which you have these subfolders, and it will work.

24.34.44.61 (talkcontribs)

I've generated a LocalSettings.php file and put it in same same level as index.php / images / extensions and my mediawiki app still can not find it.

202.95.67.35 (talkcontribs)

How did you fix this? thanks.

MarkAHershberger (talkcontribs)

Are you really using MW 1.17? You should really install at least 1.19.

88.130.96.134 (talkcontribs)

The original poster did - and he was fully up to date. In 2011. ;-)

MarkAHershberger (talkcontribs)

I realize that, but the they said they were having the same problem. ;)

98.216.80.168 (talkcontribs)

I'm having this problem with version 1.18.0 (have to recover from backup before upgrading to most current version -- have indeed checked that 1.18.0 is the correct version). I installed mediawiki in subdomain.domain.com/wiki/ and moved LocalSettings.php to the /wiki/ folder as instructed, but I'm still getting the error message "LocalSettings.php not found."

Any suggestions? Thank you!

Ciencia Al Poder (talkcontribs)

Check file permissions of the LocalSettings.php. Since it isn't now generated on the server but you need to manually upload it, it may have the wrong permissions and isn't readable by the server.

5.65.159.155 (talkcontribs)

I had this problem after transferring from one server to another. It was caused by the LocalSettings.php file not having the correct capitalization (it was localsettings.php but should be LocalSettings.php). It didn't matter on the previous server because it was windows-based, whereas the new one is Linux where case matters.

217.92.144.166 (talkcontribs)

No. This is not the problem. I have the file LocalSettings.php (with this capitalisation) inside the root folder (where index.php, extensions etc. are placed) and it tells me that it can't find LocalSettings.php.

It is the installation of a mediawiki 1.20.5 on a Linux Ubuntu 12.4.

So this issue is still unsolved.

217.92.144.166 (talkcontribs)

Now it works on 1.20.7. Don't know why it didn't work before. I only made changes (echos in the LocalSettings) that I reverted afterwards.

66.232.254.137 (talkcontribs)

check your /etc/httpd/conf.d/mediawiki119.conf file

if the paths there start with /var/www/mediawiki[,,,] then you likely placed the file in /usr/share/mediawiki[...]/ and you have not added a symlink from /var/www/mediawiki[,,,]

195.54.112.158 (talkcontribs)

Check your SELinux settings.
sudo restorecon -FR <path to www directory>

165.98.224.34 (talkcontribs)

copy LocalSettings to this directory /var/lib/mediawiki (this worked in my case)

116.197.184.10 (talkcontribs)

cp LocalSettings.php file to /var/www/mediawiki folder and restart apache2 solved by problem.

217.37.89.137 (talkcontribs)

If anybody is still having this issue what you want to do is copy the LocalSettings.php to your mediawiki folder that is located in /var/www/html and then change the user settings to www-data and not root this should fix the problem