Installation of werewolf
In order to install werewolf you will need to first install apache, php and mysql. You might need to configure apache in order for it to recognize .php sources. Also you might need to install some modules for PHP to be able to connect to mysql. The easiest way to get the trio running on Windows is to install WAMP. For Linux users, to use one of the package managers (YaST, dpkg or apt).
Testing apache-php-mysql instalation
First of all you need to know where your WEB ROOT directory is. For Linux users it is usually in: /var/www or /srv/www. For Windows, usually it is prompted during install process. For WAMP case it is in c:\wamp\www.
Create a file test.php in the WEB ROOT directory and write into it:
<?php
php_info();
?>
Afterwards, open a browser at the page http://localhost/test.php. If nothing appears, then php does not know how to run php scripts. If a page appears with lots of configuration information about php, then php and apache work well. Next step is to check whether in the generated page there is a section called mysql. If yes, then mysql should be accessible as well.
Installing werewolf
To install werewolf you just have to extract the provided installation archive (werewolf-0.1.tar.gz or werewolf-0.1.zip) into some directory inside the WEB ROOT directory. For example in /var/www/mycourse/werewolf or c:/wamp/www/mycourse/werewolf. We will refer to this path as WEREWOLF ROOT directory. Be sure that the WEREWOLF ROOT directory is the one containing the index.php file.
Creating MySQL database
In order to work, werewolf has to have access to a mysql database name werewolf. There is a SQL script provided in "WEREWOLF ROOT/init/werewolf_init". It creates a user 'werewolf' which authenticates with password 'werewolf'. It also creates a database 'werewolf' with most basic tables. You can edit this script to accomodate your password/database name requirments.
Configuring werewolf
In order to work properly, werewolf needs to know several things about the system like MySQL server host/password as well as WEREWOLF ROOT directory path. These should be changed in "WEREWOLF ROOT/includes/config.php".
