To be able to hack the MDC wiki software, you'll need a local webserver install, which can run MediaWiki.
First, check out the <tt>developer.mozilla.org</tt> project from SVN. For anonymous access use:
To see the skins properly, you'll need to also check out <tt>mozilla-org/css</tt> to get the CSS files needed:
export CVSROOT=:pserver:email@example.com:/www cvs login cvs co mozilla-org/css
(when prompted to enter a password, type <tt>anonymous</tt>)
Copy the contents of the <tt>trunk</tt> folder and the <tt>css</tt> folder (Note: the folder itself) into the <tt>www</tt> directory on your server. The contents of the <tt>trunk</tt> directory you just checked out is a slightly modified MediaWiki install, so you can follow the MediaWiki install instructions. The <tt>css</tt> folder contains files that are supposed to be in the <tt>/css</tt> directory of the site.)
To get a working install, you need to configure MediaWiki. It's done by navigating to <tt>/config/index.php</tt> in your web browser. Polvi claims that you'll have it, but in case you don't, you can copy one from the MediaWiki tarball.
Once you're done with the configuration script, copy the <tt>config/LocalSettings.php</tt> file it created to the parent directory and navigate to the location you installed MediaWiki to. A main page should appear. You can log in and switch the skin to Devmo if you like.
The MDC wiki uses a few MediaWiki extensions. You can enable them by adding
to the end of your <tt>LocalSettings.php</tt>. For example:
[snip] include("extensions/Breadcrumbs.php"); include("extensions/TitleOverride.php"); include("extensions/Abbr.php"); include("extensions/Object.php"); include("extensions/Kbd.php"); ?>
TBD installing/configuring RSS and Doxygen extensions - anything special needs to be done?
The title-override / breadcrumbs extensions need an additional table created. To configure it, run <tt>update-devmo.php</tt> from the command line. The following worked for me (from the <tt>www</tt> directory):
/path/to/php -f ./maintenance/update-devmo.php
You should have a working install of the MDC wiki now. If you have problems with setting up the MDC wiki (and not the web server or PHP or MediaWiki), feel free to ask in #devmo.
You can set the file to log by putting something like this in your LocalSettings.php:
$wgDebugLogFile = 'c:\\123';
You can then use
wfDebug() function to write to the log.