[Mediawiki-l] LocalSettings.php empty

Tim Starling tstarling at wikimedia.org
Wed Jan 27 23:28:03 UTC 2010

Henry Hartley wrote:
> On 1/27/2010 7:34 AM, Massimo Canonico wrote:
>> I just downloaded and installe the last MediaWiki. The installation and
>> configuration went well, but now I cannot see anything in
>> config/LocalSettigs.php.
>> I've tried to use "chmod 777 config/LocalSettigs.php" to exclude
>> permission problem, with lo luck.
>> Maybe the problem is related to apache that is the owner of the file:
>> dcs:~/dcs.di.unipmn.it/mex/mediawiki/config $ ll
>> total 92
>> -rw-rw-rw- 1 apache apache  4158 2010-01-27 12:03 LocalSettings.php
>> -rw-r--r-- 1 mex    mex    76239 2009-05-08 07:51 index.php
>> -rw-r--r-- 1 mex    mex       68 2007-07-11 09:55 index.php5
> If you are able to change the group ownership to one you are in (i.e. 
> chown apache.mex LocalSettings.php), that should give you access to the 
> file . Another option is to make yourself a member of the apache group. 
> It needs to be moved down a directory into the main wiki directory. It 
> should also have permissions of 660, not 777. If you were able to change 
> the permission to 777 but still could not read it, then I don't know 
> what's going on. Or do you mean you could not change the permissions? 
> You'll need to be root to do that.

You can change the file ownership as a non-root user using the
standard Unix utility called "cp".

-- Tim Starling

More information about the MediaWiki-l mailing list