Last modified: 2010-05-15 15:59:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 13892 - New installation overwrites old configuration files, does not take care of additional directories too
New installation overwrites old configuration files, does not take care of ad...
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
PC Linux
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-04-30 11:59 UTC by Evgueny Antonoff
Modified: 2010-05-15 15:59 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Evgueny Antonoff 2008-04-30 11:59:14 UTC
MediaWiki installation should take care of old configuration files, when old version is found. Also additional directories from old installation were not moved to the new installation directory too. Also the symlink created by my old installation of mediawiki was left unupdated.

New installation should at least offer to back-up the old config files, better is to offer a "Replace (Y/N)" dialog and best is to diff the old and new files, show the diff to the user and ask to apply it to the new config files. It should also check for upload/ and images/ (probably other additional directories) and copy them to the new installation directory. My old installation also created a symlink  /var/www/mediawiki pointing to my installation /var/lib/mediawiki1.10, which after upgrade is nice to be made pointing to the new installation.

Just upgraded my whole Ubuntu from 7.10 to 8.04 and it upgraded my other packages as well. I had MediaWiki 1.10, which the installer upgraded to 1.11.2. I lost my old configuration files and it was very frustrating.

Just to mention that on that same Ubuntu upgrade, I did today, Apache installation showed me the diff of the old and new config files and asked me should it keep the old files so I take decision on what to do.

I also had upload/ and images/ directories created by the old MediaWiki installation, since I have uploads enabled, as well as images uploaded already. These were not moved to the new installation directory.

Well, what I did to fix all this was to manually edit again LocalSettings.php and manually move upload/ and images/ to the new location, as well as manually made the symlink to point to the new installation. But this is frustrating.

Please fix this.
Comment 1 Daniel Kinzler 2008-04-30 12:15:17 UTC
MediaWiki only offers a web based installer, which creates a fresh configuration file in a separate location and leaves to to you to move it to make it go live. It does not create any symlinks.

Sounds to me like you are talking about whatever the ubuntu bundle does. Talk to the bundle's maintainer then. Distribution bundes are not maintained or supported here. "apt-cache show mediawiki" sais:

Maintainer: Ubuntu MOTU Developers <ubuntu-motu AT>
Original-Maintainer: Mediawiki Maintenance Team <pkg-mediawiki-devel AT>

Note You need to log in before you can comment on or make changes to this bug.