From: Brion Vibber Setup has completed, your wiki is configured. Setup has completed, your wiki is configured. Please delete the /config directory for extra security.
You should change file permissions for LocalSettings.php as required to prevent other users on the server reading passwords and altering configuration data.
@@ -1568,6 +1584,7 @@ if ( \$wgCommandLineMode ) { ## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. \$wgScriptPath = \"{$slconf['ScriptPath']}\"; +\$wgScriptExtension = \"{$slconf['ScriptExtension']}\"; ## For more information on customizing the URLs please see: ## http://www.mediawiki.org/wiki/Manual:Short_URL diff --git a/config/index.php5 b/config/index.php5 new file mode 100644 index 0000000000..1be08780e8 --- /dev/null +++ b/config/index.php5 @@ -0,0 +1,6 @@ + diff --git a/img_auth.php5 b/img_auth.php5 new file mode 100644 index 0000000000..2065de9328 --- /dev/null +++ b/img_auth.php5 @@ -0,0 +1 @@ + diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 62f08685cd..a97993b59e 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -125,8 +125,9 @@ $wgUsePathInfo = * in LocalSettings.php. Generally you should not need to change this * unless you don't like seeing "index.php". */ -$wgScript = false; /// defaults to "{$wgScriptPath}/index.php" -$wgRedirectScript = false; /// defaults to "{$wgScriptPath}/redirect.php" +$wgScriptExtension = '.php'; /// extension to append to script names by default +$wgScript = false; /// defaults to "{$wgScriptPath}/index{$wgScriptExtension}" +$wgRedirectScript = false; /// defaults to "{$wgScriptPath}/redirect{$wgScriptExtension}" /**#@-*/ @@ -443,7 +444,7 @@ $wgUploadNavigationUrl = false; * apache servers don't have read/write access to the thumbnail path. * * Example: - * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php"; + * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb{$wgScriptExtension}"; */ $wgThumbnailScriptPath = false; $wgSharedThumbnailScriptPath = false; diff --git a/includes/Setup.php b/includes/Setup.php index 21343a699a..7c1bb913ec 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -28,8 +28,8 @@ if ( !isset( $wgVersion ) ) { } // Set various default paths sensibly... -if( $wgScript === false ) $wgScript = "$wgScriptPath/index.php"; -if( $wgRedirectScript === false ) $wgRedirectScript = "$wgScriptPath/redirect.php"; +if( $wgScript === false ) $wgScript = "$wgScriptPath/index$wgScriptExtension"; +if( $wgRedirectScript === false ) $wgRedirectScript = "$wgScriptPath/redirect$wgScriptExtension"; if( $wgArticlePath === false ) { if( $wgUsePathInfo ) { diff --git a/index.php5 b/index.php5 new file mode 100644 index 0000000000..85236494a6 --- /dev/null +++ b/index.php5 @@ -0,0 +1 @@ + diff --git a/install-utils.inc b/install-utils.inc index 24480f9165..9723e8dc26 100644 --- a/install-utils.inc +++ b/install-utils.inc @@ -11,7 +11,9 @@ function install_version_checks() { die( -1 ); } if( version_compare( phpversion(), '5.0.0' ) < 0 ) { - echo "PHP 5.0.0 or higher is required. ABORTING.\n"; + echo "PHP 5.0.0 or higher is required. If PHP 5 is available only when \n". + "PHP files have a .php5 extension, please navigate to index.php5 \n". + "to continue installation. ABORTING.\n"; die( -1 ); } @@ -122,4 +124,4 @@ function mw_get_session_save_path() { return $path; } -?> \ No newline at end of file +?> diff --git a/redirect.php5 b/redirect.php5 new file mode 100644 index 0000000000..5465295dee --- /dev/null +++ b/redirect.php5 @@ -0,0 +1 @@ + diff --git a/thumb.php5 b/thumb.php5 new file mode 100644 index 0000000000..f5c4c06447 --- /dev/null +++ b/thumb.php5 @@ -0,0 +1 @@ +