[Mediawiki-l] Mirroring Wiki's and environment paths

Dave M G martin at autotelic.com
Sat May 20 05:50:03 UTC 2006


MediaWiki,

Before beginning, please be aware that I am very new to MediaWiki, and 
although a little experienced with PHP and MySQL, please respond on a 
newbie level.

My intention is to have a Wiki installed on my home development 
environment, and then mirror it onto my hosting service. So far, I have 
succeeded in installing MediaWiki at home, which is an Ubuntu Linux 
system. It runs fine at home.

However, when I copied the files and database to the web site, I got a 
404 "Not Found" error when I tried to go to the index.php page.

To make a long story short, it seems the trouble is, at least in part, 
this variable in the LocalSettings.php file:

$wgScriptPath = "/web_sites/gutteridge.info/web";

The Wiki in my home environment is located at:
http://localhost/web_sites/gutteridge.info/web

However, this is not the case on the server. On the server, the path 
directory is something like:
/home/webadmin/gutteridge.info/html

I have tried therefor to seeing the variable to:
$wgScriptPath = "/home/webadmin/gutteridge.info/html';

With no success.

In any case, even if that were to work, I would prefer not to have the 
files on my development environment and my hosting environment diverge 
in any way, to avoid confusion and human error.

So, I tried:
$wgScriptPath = "$_SERVER[DOCUMENT_ROOT]";

But at this point I realized I was shooting in the dark. And also that 
this one particular variable may only be part of the story.

How do I configure the paths so as to be able to mirror my Wiki? Surely 
there must be a way to set the paths relative so as not to have the 
problems I am encountering.

Please note I have already set up the database server to have similar 
user accounts and passwords, so MySQL access should not be an issue 
between the two environments.

Thank you for any advice.

--
Dave M G



More information about the MediaWiki-l mailing list