Open main menu

Changes

1,577 bytes added ,  16:33, 7 May 2018
add login info
[[File:MediaWiki-Vagrant.screenshot.png | thumb | screenshot showing aspects of the MediaWiki-Vagrant system]]
== Engineering / Architecture ==
MediaWiki-Vagrant runs on <strike>HHVM</strike><ref>[[mw:HHVM]]</ref><ref>Facecrook announced in Sept. 2017 that HHVM would not aim for PHP compatibility in the future.[https://hhvm.com/blog/2017/09/18/the-future-of-hhvm.html 1] After discussion[https://lists.wikimedia.org/pipermail/wikitech-l/2017-September/088784.html 2] WMF adopted a plan to [https://phabricator.wikimedia.org/T176370 migrate the WMF production cluster to PHP 7], first [https://phabricator.wikimedia.org/T174431 migrating appservers from Jessie to Stretch]. Once that's done, HHVM support will likely be dropped from MediaWiki (exact details tbd). See [https://phabricator.wikimedia.org/T176209 task T176209].</ref> PHP7-FPM with Apache etc. Of course it all relies on [[Vagrant]] and [[VirtualBox]]
 
Meanwhile, current versions of [[VirtualBox]] have [https://www.virtualbox.org/ticket/17490 problems with running Guest Additions on Linux]. This is but one ticket. There are tons of examples of breakage, and fixes haven't landed yet in a stable release. Current solution: run development? (I'm checking on compatibility)
== Quick Tips ==
Be sure to check the documentation at [[mw:MediaWiki-Vagrant]]
MediaWiki-Vagrant runs on HHVM. It simultaneously runs on Apache, but at a more complex host scheme. * wiki login is 'Admin' 'vagrant'* local shell user is 'vagrant' 'vagrant'* ssh: <code>vagrant ssh</code> <code>vagrant roles list</code> To convert all wikis enable certain roles in your MediaWiki-Vagrant instance to PHP5: <code>vagrant roles enable zend && vagrant <role> -- provision</code> Once you do this, and visit http://localhost:8080/wiki/Special:Version, you will see '''PHP''' displayed where '''HHVM''' used to be in can check the product box showing the currently running versions of 'MediaWiki, PHP, MySQL, ICU' and extensions. == DNS ==MediaWiki Vagrant docs will tell you to visit http://dev.wiki.local.wmftest.net:8080/wiki which is fine, because this specific domain routes to 127.0.0.1 (your local host). There's nothing you have to do with DNS. All three of the following are equivalent.* http://localhost:8080/wiki/Special:Version* http://127.0.0.1:8080/wiki/Special:Version* http://dev.wiki.local.wmftest.net:8080/wiki/Special:Version
== Deploy MediaWiki-Vagrant to Amazon ==
== Boxes ==
The base box that is used at this time is [https://vagrantcloud.com/debian/boxes/contrib-stretch64/versions/9.4.0/providers/virtualbox.box Debian stretch](see also https://app.vagrantup.com/debian). If you <code>vagrant up --provision</code> an old box based on Ubuntu, then it will prompt you to destroy the existing box (so that it can re-provision with the right OS) <code>vagrant destroy -f; vagrant up</code>
Each '[http://docs.vagrantup.com/v2/providers/basic_usage.html box]' in vagrant is specific to a provider, so we'll need to get a new box that will run on AWS.
4,558

edits