wiki.techinc.nl/maintenance/dev
Antoine Musso 830dec6d21 Let built-in web server handle .php requests
When using the PHP built-in webserver with maintenance/dev/start.sh,
requests made to regular files do show in the console output but
requests to .php files do not log anything in the console. It is a bit
annoying since one is left wondering whether the requests are actually
honored.

The reason is the request router maintenance/dev/includes/router.php
does a require of the PHP file and abort the router (return true). That
causes the built-in php server to not produce the access log requests.

Based on the comment note, some earlier PHP version had POST data
stripped preventing login. The related upstream bug is
https://bugs.php.net/bug.php?id=60159:

  "Router returns false, but POST is not passed to requested resource"

750eac7e41 introduced the workaround on Nov 24th 2011. PHP 5.4.0 got
released in March 2012 and refers to that bug.  The development of our
router thus must have used a development/beta version of PHP 5.4.

Since the fix made it to the PHP final release, there is no need for
workaround anymore.

Bug: T190503
Change-Id: Ia8c4f1610ea0ef5b04ea30d6e91199b8e597065b
2018-03-28 15:36:02 +02:00
..
includes Let built-in web server handle .php requests 2018-03-28 15:36:02 +02:00
install.sh
installmw.sh
installphp.sh Update the installphp.sh script to use a supported PHP version 2017-11-05 00:13:40 +01:00
README Correct PHP version in maintenance/dev/README 2018-03-13 13:39:14 +01:00
start.sh

maintenance/dev/ scripts can help quickly setup a local MediaWiki for development purposes.

Wikis setup in this way are NOT meant to be publicly available. They use a development database not acceptable for use in production. Place a sqlite database in an unsafe location a real wiki should never place it in. And use predictable default logins for the initial administrator user.

Running maintenance/dev/install.sh will download and install a local copy of php 5.6, install a sqlite powered instance of MW for development, and then start up a local webserver to view the wiki.

After installation you can bring the webserver back up at any time you want with maintenance/dev/start.sh