From PmWiki

Main: WindowsInstallation

Install pre-requisite software

If you are comfortable with Java development, generic tools can be used to replace the more advanced environments. You may also use your own editor for code modifications and configurations. These are the tools I've found best match the environment CONGO was developed in. In the future, I hope to be able to adapt the code to more traditional Java environments, using Eclipse for better IDE support, as well as using a normal servlet container, but for now, these are the pieces that have to be used.

Setting your system paths

In order to work properly from the command line, your windows shell needs to have the JDK binary directory and the Ant binary directory on the system path. To do this, right click on your "My Computer" icon and open System Properties. On the Advanced tab, click on the button marked Environment Variables.

Under System Variables scroll to find the 'Path' variable, and double-click on it. Be careful you do not wipe out the existing value here, and add to the value the path to the JDK you installed, something like:

 C:\Program Files\Java\jdk1.6.0_01\bin;

Make sure you leave a semicolon (;) between each path. Also add in the path to the Ant binary directory, like this:

 C:\Program Files\ant\apache-ant-1.7.0\bin;

Click 'ok' on up through the windows to close everything out. The path goes active immediately, so you can test to make sure it works by opening up a command shell (start->run, 'cmd'), and typing the word 'ant'. You should see something similar to this:

 C:\>ant
 Buildfile: build.xml does not exist!
 Build failed

The error message is fine, that's just Ant saying it can't start up in the current directory. Don't worry about it for now, we'll give it work to do later.

Checking out CONGO from SVN via TortoiseSVN?

If you don't have an already checked out copy of CONGO, you can use Tortoise SVN to fetch it.

Open up your Windows explorer, and navigate to a directory where you'd like to put CONGO. Right click on the panel, and you should see 'SVN Checkout...' as one of the options. Select that, and for the SVN URL, use:

 http://svn.stonekeep.com/svn/congo/trunk/

Note that access to the repository as of mid-2008 now requires a username and a password. If you don't have access to SVN, contact Stonekeep to get authorization. Select a checkout target directory, and click Ok, and you should get a checked out copy of CONGO copied to your computer. Simple!

Configuring XAMPP to point to the correct dir

XAMPP's default configuration won't be able to find where CONGO and Coconut are installed. To change this, cd to where Apache's configuration files are store:

 cd C:\Program Files\xampp\apache\conf

Use your favorite editor to open up httpd.conf, and somewhere in the file (at the bottom should be fine), add the following text:

 Alias /congo "c:/My Documents/congo/"
 <Directory "D:/My Documents/congo">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
 </Directory>

obviously, substituting the appropriate paths for where you installed CONGO. Save the file, and restart Apache through the XAMPP control panel. If you point your browser at http://localhost/congo/ you should see CONGO's top level directory.

Creating the database with PHPMyAdmin?

Part of the XAMPP installation included PHPMyAdmin?, which can be used to create the tables CONGO requires.

After creating the database instance, select it, and click on the 'import' tab in PHPMyAdmin?. There will be a prompt for 'Location of the text file'. You can use the Browse button to navigate to your CONGO installation directory, and select the subdirectory 'structs'.

Import and execute every file in that directory. Unfortunately, you'll need to do it one at a time.

Once all the imports are complete, CONGO should be ready to run. Your next step should be setting up the server. See ServerConfiguration for details on that.

Retrieved from http://congo.wiki.stonekeep.com/Main/WindowsInstallation
Page last modified on August 17, 2008, at 11:54 AM