![]() Note there may beĬonflicts doing this if security patches or bug fixes have beenĪpplied by hand. Update the untracked extensions that we are usingĬd $EXTENSION_DIR & git pull origin master. Any untracked extensions that we are not using You should see several untracked dirs for things like the strapping Take stock of the current state of extensions git status. Update the git submodules for this new branch Upgrade until that upstream is running the latest version.Ĭreate and checkout a local tracking branch for the latest upstreamīranch git checkout -b wmf/1.22wmf11 origin/wmf/1.22wmf11. Specific slot paths eg /srv/mediawiki/slot0.įetch the latest git content in the inactive slotĬd /srv/mediawiki/$INACTIVE_SLOT & git fetch.įind the latest Wikimedia Foundation branch git branch -a. Once this value is known do not use /srv/mediawiki/w in yourĬommands, doing so will break the git submodules. One last problem I had appeared when visiting my wiki: MediaWiki 1.25+ disabled skin auto-discovery and I was told to add an explicit wfLoadSkin( 'Vector' ) to my which install slot is active ls -l /srv/mediawiki/w. Now it should be possible to restart Apache and see your wiki on your website: service apache2 restart If you have an AdminSettings.php file, use the details in there - MediaWiki no longer reads this file itself, and you should delete this file from now on. Use the script's -dbuser and -dbpass options to supply a MySQL user with more privileges. ![]() If the database user you use for the wiki doesn't have the permissions to modify the database structure, the script will fail. Run the upgrade script to update MediaWiki's database structure: cd maintenance/ Sed -i 's/apc_/apcu_/g' includes/objectcache/ObjectCache.php In MediaWiki's code, replace apc_* calls with apcu_* calls: sed -i 's/apc_/apcu_/g' includes/libs/objectcache/APCBagOStuff.php I fixed this by using the APCu module instead. I used APC for caching, and I found that MediaWiki uses the traditional APC module, which isn't included with PHP 7. MediaWiki works fine with PHP 7, but you need to install these packages manually and enable them: apt-get install libapache2-mod-php7.0 php-apcu php-gd php-json php-mysql php-xml You'll find that several of the PHP packages that MediaWiki relies on aren't installed for PHP 7, which is the new standard PHP version for Ubuntu 16.04. Copy it to the new installation directory: cp -a /var/lib/mediawiki/images. If you uploaded any images to your wiki, you'll have an images directory in /var/lib/mediawiki. Mv mediawiki-1.26.2 /srv/apache2/public_html/wikiĮdit the file LocalSettings.php and change the setting MW_INSTALL_PATH from /var/lib/mediawiki to the new path.ĭo the same in the file /etc/apache2/conf-available/nf You'll need to adapt these paths to fit your own setup.ĭownload the latest MediaWiki and unpack it directly to the path it should have on your web server. making the full path /srv/apache2/public_html/wiki. In this answer, the website's document root is /srv/apache2/public_html and the location of the wiki on the web server is /wiki (e.g. Previously, that will have been an alias, and the real installation path will have been under /var/lib/mediawiki, but as it's now up to you to maintain it instead of the Debian/Ubuntu maintainers, it's simplest to put it under its real path. This answer presumes you're willing to maintain MediaWiki yourself from now on.Īlso, it will install MediaWiki in the real document root of your web server.
0 Comments
Leave a Reply. |