Settings in /etc/mediawiki/LocalSettings.php are ignored

Bug #1800505 reported by Nathanael Anderson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mediawiki (Ubuntu)
New
Undecided
Unassigned

Bug Description

Description: Ubuntu 18.04 LTS
Release: 18.04

mediawiki:
  Installed: 1:1.27.4-3
  Candidate: 1:1.27.4-3
  Version table:
 *** 1:1.27.4-3 500
        500 http://us-west-2.ec2.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status

Based on where the symlinks included in the package point, settings placed in: /etc/mediawiki/LocalSettings.php should over ride default settings.

So Creating /etc/mediawiki/LocalSettings.php with mode 640 that has only this line in it: $wgLogo = "https://cdn.dribbble.com/users/904380/screenshots/2233565/revised-google-logo.gif"

and saving it. Should, after clearing the browser cache, show a new image for the wiki, instead of the default.

This is not the current behaviour, hence the bug.

As a side note, after installing the package on ubuntu no documentation is displayed to the user, based on my googling today, it looks like LocalSettings.php used to have a generator, as part of the install process, and that has gone away. The new install process with out that feels like it isn't documented well, and this may just be a documentation issue.

Revision history for this message
Kunal Mehta (legoktm) wrote : Re: [Bug 1800505] [NEW] Settings in /etc/mediawiki/LocalSettings.php are ignored

Hi,

On 10/29/18 9:55 AM, Nathanael Anderson wrote:
> Based on where the symlinks included in the package point, settings
> placed in: /etc/mediawiki/LocalSettings.php should over ride default
> settings.

Correct.

> So Creating /etc/mediawiki/LocalSettings.php with mode 640 that has only
> this line in it: $wgLogo =
> "https://cdn.dribbble.com/users/904380/screenshots/2233565/revised-
> google-logo.gif"
>
> and saving it. Should, after clearing the browser cache, show a new
> image for the wiki, instead of the default.

Uhh, that won't work. You first need to install MediaWiki, typically by
going through the web installer (<http://localhost/mediawiki/>), which
will generate a LocalSettings.php for you to save into /etc/mediawiki/,
and *then* you can modify the logo.

> As a side note, after installing the package on ubuntu no documentation
> is displayed to the user, based on my googling today, it looks like
> LocalSettings.php used to have a generator, as part of the install
> process, and that has gone away. The new install process with out that
> feels like it isn't documented well, and this may just be a
> documentation issue.

What/where did you expect documentation to be available? The package
already installs documentation to /usr/share/doc/mediawiki, including
README.Debian, which explains the briefly explains the install process.

-- Kunal

Revision history for this message
Nathanael Anderson (wirelessdreamer) wrote :

why does the main page display: MediaWiki has been installed. instead of please go to HOSTname/mediawiki to configure media wiki?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.