======== QuickStart MediaWiki 1.25.2 on OpenShift.
As of today (12/09/2015), this is the latest version of mediawiki. Follow the steps below to build on OpenShift.
PreInstalled Plugins:
Cite, CiteThisPage, Gadgets, ImageMap, InputBox, Interwiki, LocalisationUpdate, Nuke, ParserFunctions, PdfHandler, Poem, Renameuser, SpamBlacklist, SyntaxHighlight_GeSHi, TitleBlacklist, WikiEditor, Google Analytics.
8/10/2015 Openshift uses HAProxy for loadbalancing in front of the servers . This causes mediawiki to show the same internal proxy ip for all users. I've written a small plugin to fix this. Can be found under /extensions/OpenshiftMediawikiIpFix
30/09/2015
Plugins:
- Scribunto (with standalone lua, enables you to do in wiki scripting and use popular features like infobox)
- mobile frontend ,
- google analytics (edit LocalSettings.php to set your google analytics account. edit line 165.) Google analytics extension repo/code can be found here -> https://github.com/negati-ve/mediawiki-google-analytics-extension
- uploads moved to data directory. ** Uploads are now persistent. Quickstart ==========
- Create an account at https://www.openshift.com
- Create a php application with mysql:
$ rhc app create mediawiki php-5.4 mysql-5.5
- Add this upstream mediawiki repo
$ cd mediawiki $ git remote add upstream -m master https://github.com/negati-ve/openshift-mediawiki.git $ git pull -s recursive -X theirs upstream master
- Then push the repo upstream
$ git push
- That's it, you can now checkout your application at: http://mediawiki-$yourlogin.rhcloud.com
- Default Admin Username: admin Default Password: admin123
In order to update or upgrade to the latest mediawiki, you'll need to re-pull and re-push.
- Pull from upstream:
$ cd mediawiki/ $ git pull -s recursive -X theirs upstream master
- Push the new changes upstream
$ git push
php/ - Externally exposed php code goes here
libs/ - Additional libraries
misc/ - For not-externally exposed php code
../data - For persistent data
.openshift/pear.txt - list of pears to install
.openshift/action_hooks/build - Script that gets run every push, just prior to starting your app
Please leave php, libs and data directories but feel free to create additional directories if needed.
Note: Every time you push, everything in your remote repo dir gets recreated please store long term items (like an sqlite database) in ../data which will persist between pushes of your repo.