Last modified: 2011-10-12 01:16:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T6258, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 4258 - When installing under IIS, $wgArticlePath = "$wgScript?title=$1" should be set
When installing under IIS, $wgArticlePath = "$wgScript?title=$1" should be set
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.6.x
PC All
: Normal enhancement (vote)
: ---
Assigned To: Rob Church
: patch
: 1832 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-12-12 14:15 UTC by Rob Church
Modified: 2011-10-12 01:16 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch against CVS HEAD (981 bytes, patch)
2005-12-13 16:08 UTC, Rob Church
Details

Description Rob Church 2005-12-12 14:15:35 UTC
Upon installing MediaWiki under IIS, the $wgArticlePath option in
LocalSettings.php is often set incorrectly to the "pretty URLs". Because of the
way PHP works with IIS, this is wrong, and causes a 404 not found error.

Proposed solution is to force this option to use the ugly URLs when using IIS.
This can be done during install, or manually during execution.

Patch will likely follow.
Comment 1 Rob Church 2005-12-13 16:08:21 UTC
Created attachment 1182 [details]
Patch against CVS HEAD

OK, the patch improves the detection for php_sapi_name(), and adds "isapi" to
the list of cases where ugly URLs will be used.

It also made no sense to default to pretty URLs when they might not work, so I
altered the default to ugly URLs in unknown cases.
Comment 2 Brion Vibber 2005-12-13 22:09:25 UTC
Applied to HEAD, without the redundant strtolower() as discussed on IRC.
Comment 3 Zigger 2005-12-30 22:21:43 UTC
*** Bug 1832 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links