Upgrade Debian Jessie with MediaWiki to Stretch
From Andreida
Upgrade from Jessie to Stretch
When switching from Debian Jessie to Debian Stretch with some installed MediaWikis I had some problems. Perhaps this can help you, if you have the same problems.
- Ensure you have an updated Jessie
apt-get update && apt-get upgrade
- change /etc/apt/sources.list
- replace all occurrences of "jessie" or whatever with "stretch"
deb http://ftp.de.debian.org/debian/ stretch main non-free
- do the upgrade
apt-get update apt-get upgrade apt-get dist-upgrade shutdown -r now
Now you should have Debian Stretch running.
Fixing your MediaWikis
One of the errors I got was:
MediaWiki requires the PSR-3 logging library to be present. This library is not embedded directly in MediaWiki's git repository and must be installed separately by the end user. Please see mediawiki.org for help on installing the required components.
If I refreshed the page I got other errors about different things. What I did to fix this:
- install the logger framework
apt-get install php-psr-log
- create links in each of your wikis to the vendor dir:
ln -s /usr/share/mediawiki/vendor /var/www/copy1/ ln -s /usr/share/mediawiki/vendor /var/www/copy2/
- install the composer (a php install and update system)
apt-get install composer
- edit all your LocalSettings.php files:
- remove the the three lines under "debian-specific include"
# debian-specific include: //if (is_file("/etc/mediawiki-extensions/extensions.php")) { // include("/etc/mediawiki-extensions/extensions.php"); //}
- add skin info
wfLoadSkin( 'CologneBlue' ); wfLoadSkin( 'Modern' ); wfLoadSkin( 'MonoBook' ); wfLoadSkin( 'Vector' );
- for each of your MediaWikis:
- go into the directory
cd /var/www/copy1
- call the update script
maintenance/update.php --conf /var/www/copy1/LocalSettings.php
Now I had all my MediaWikis working again. As you can see. :-)