LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-19-2005, 12:40 PM   #1
Silvermink
LQ Newbie
 
Registered: Sep 2003
Location: Vancouver, BC
Distribution: SuSE 8.2, Mandrake 10.0
Posts: 11

Rep: Reputation: 0
Path issues with MediaWiki


I've just installed MediaWiki on a server for a group project at school, and I'm getting some weird path issues. The server is on a private network, and all the traffic goes through another machine, so the document root of our server is at http://the.other.machine/ourserver.

Anyway, I'm at a point now where I've set ServerName in httpd.conf to the.other.machine/ourserver, and MediaWiki is still having some weird path issues. $wgScriptPath is set to /wiki, but it seems like no matter how much I poke at the variables, I can't get any page but index.php. The links to other pages _from_ index.php are all '/wiki/blah.php' when they should be '/ourserver/wiki/blah.php'. I tried various combinations of paths in httpd.conf and LocalSettings.php, for example setting $wgScriptPath to /ourserver/wiki, but it still wants to look for the files at http://the.other.machine/wiki.

Anyone have any idea what's going on?
 
Old 02-19-2005, 12:49 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
What are the following variables set to in LocalSettings.php?
$wgScriptPath
$wgScript
$wgArticlePath

Which version are you running?
 
Old 02-19-2005, 01:17 PM   #3
Silvermink
LQ Newbie
 
Registered: Sep 2003
Location: Vancouver, BC
Distribution: SuSE 8.2, Mandrake 10.0
Posts: 11

Original Poster
Rep: Reputation: 0
$wgScriptPath = "/wiki";
$wgScript = "$wgScriptPath/index.php";
$wgArticlePath = "$wgScript?title=$1";

I tried changing ArticlePath to use the ugly URLs, which made my browser insist that it wanted to download this PHP file.

I'm running MediaWiki 1.4b6 (was having some problems getting 1.3 set up.)
 
Old 02-19-2005, 01:25 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Try setting:
$wgScriptPath = "/ourserver/wiki";

Remember to force the cache to clear by refreshing your page with the shift key down then try one of the links.
 
Old 02-19-2005, 04:54 PM   #5
Silvermink
LQ Newbie
 
Registered: Sep 2003
Location: Vancouver, BC
Distribution: SuSE 8.2, Mandrake 10.0
Posts: 11

Original Poster
Rep: Reputation: 0
Ah, great, it works now. It's really, really slow for some reason, but it works. Funny, I thought I had tried that before, but maybe it was because I didn't have ugly URLs on.

I also reset ServerName in httpd2.conf to just the server name, because it was trying to add an extra '/wiki/' in there otherwise.

Last edited by Silvermink; 02-19-2005 at 05:07 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
MediaWiki on Core 4 interOperate Fedora 1 08-23-2005 08:18 AM
mediawiki spellchecker jdd Linux - Software 2 08-04-2005 05:26 AM
mediawiki noir911 General 1 07-01-2005 07:18 AM
kdevelop+BerkeleyDB and path issues mimithebrain Mandriva 0 08-06-2004 05:29 PM
RH8.0 PATH issues gauge73 Linux - General 2 01-27-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration