From: Kevin Israel Date: Thu, 26 Jul 2018 05:36:19 +0000 (-0400) Subject: INSTALL: Don't warn against using PHP "as a CGI plugin" X-Git-Tag: 1.34.0-rc.0~4652^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=86c6b814351314e8e3eb87c09f3f044c9a1b2925 INSTALL: Don't warn against using PHP "as a CGI plugin" This note is very old; it was added in r2832 (635388356be70130) and r3285 (7ab7a50cf928861f). Modern versions of MediaWiki support CGI and FastCGI installations nearly as well as mod_php installations. In fact, Wikimedia currently uses HHVM's "fastcgi" server type, and intends to use php-fpm with PHP 7 (see migration plan in T176370). For a basic MediaWiki installation using the web installer, the only difference I know of is the default URLs: /w/index.php?title=$1 for CGI, as opposed to /w/index.php/$1 for mod_php. This issue is easy to fix by changing $wgArticlePath, if the web server sets REQUEST_URI. Admins who want to use short URLs (e.g. /wiki/$1) have to do this anyway. Also, in img_auth.php and the "img-auth-nopathinfo" message, don't imply that CGI and FastCGI server configurations generally can't provide path information or support MediaWiki features that need it. Change-Id: I89212e9d51f950a58f911083b9e109b69cd4e060 --- diff --git a/INSTALL b/INSTALL index 91dcbea0be..d68342c795 100644 --- a/INSTALL +++ b/INSTALL @@ -17,9 +17,6 @@ Required software: MediaWiki is developed and tested mainly on Unix/Linux platforms, but should work on Windows as well. -If your PHP is configured as a CGI plug-in rather than an Apache module you may -experience problems, as this configuration is not well tested. - Support for rendering mathematical formulas requires installing the Math extension, see https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:Math diff --git a/img_auth.php b/img_auth.php index 205280908b..ca69d31d53 100644 --- a/img_auth.php +++ b/img_auth.php @@ -17,7 +17,8 @@ * just that it was. If you want to change this, you can set $wgImgAuthDetails to 'true' * in localsettings.php and it will give the user the reason why access was denied. * - * Your server needs to support PATH_INFO; CGI-based configurations usually don't. + * Your server needs to support REQUEST_URI or PATH_INFO; CGI-based + * configurations sometimes don't. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/languages/i18n/en.json b/languages/i18n/en.json index d350e3fdd0..3d58927dd8 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -1783,7 +1783,7 @@ "uploadstash-zero-length": "File is zero length.", "invalid-chunk-offset": "Invalid chunk offset", "img-auth-accessdenied": "Access denied", - "img-auth-nopathinfo": "Missing PATH_INFO.\nYour server is not set up to pass this information.\nIt may be CGI-based and cannot support img_auth.\nSee https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Image_Authorization.", + "img-auth-nopathinfo": "Missing path information.\nYour server must be set up to pass the REQUEST_URI and/or PATH_INFO variables.\nIf it is, try enabling $wgUsePathInfo.\nSee https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Image_Authorization.", "img-auth-notindir": "Requested path is not in the configured upload directory.", "img-auth-badtitle": "Unable to construct a valid title from \"$1\".", "img-auth-nologinnWL": "You are not logged in and \"$1\" is not in the whitelist.",