Go Back   HostGator Peer Support Forums > Public Forums > Suggestions

Notices

Reply
 
Thread Tools
  #1  
Old 06-26-2007, 10:13 AM
Xudikkor's Avatar
Xudikkor Xudikkor is offline
Hatchling Croc
 
Join Date: May 2007
Posts: 3
Exclamation MediaWiki + phpSuEXEC = Fail?

FYI to MediaWiki users whose script no longer functions;
First solution worked for me.
Be advised that these solutions comes with a cost (highlighted in red marking).

Quote:
Originally Posted by Frank / Dec 10, 2005

A heads-up to anyone who may be using MediaWiki out there, this change may also break existing installations. If your MediaWiki now shows a blank page, or if it tries forever to load the page without success (infinite redirection loop), this is the cause.

There are two options when fixing it:

a) in your config file (LocalSettings.php):
Find the area where it says,
Code:
## If using PHP as a CGI module, use the ugly URLs
$wgArticlePath = "$wgScript/$1";
# $wgArticlePath = "$wgScript?title=$1";
(around line 30 for me)

And change it to:
Code:
## If using PHP as a CGI module, use the ugly URLs
#$wgArticlePath = "$wgScript/$1";
$wgArticlePath = "$wgScript?title=$1";
This will get the Wiki working again, but search engines will no longer index your site; the URLs are also a bit longer/messier (but old bookmarks should still work, I think)

b) There's a second way to fix it:
Open up includes/DefaultSettings.php, and find:
Code:
/**
* Whether to support URLs like index.php/Page_title
* @global bool $wgUsePathInfo
*/
$wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
(should be at line 75)

And change that last line to:
$wgUsePathInfo = true;

But note that this MIGHT break other things. I haven't found any problems with it yet, but the MediaWiki people must have done that for a reason... so use at your own risk!
__________________
HAPPY THOUGHTS! ®
Reply With Quote
  #2  
Old 06-26-2007, 02:48 PM
PsiPro PsiPro is offline
King Croc
 
Join Date: Nov 2005
Posts: 812
Default Re: MediaWiki + phpSuEXEC = Fail?

Most search engines will continue to index sites with a query string, any engine that wont really shouldn't be a concern to anyway.
__________________
http://www.theaquariumwiki.com/
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 04:28 AM.