root/trunk/leaguerunner/README

Revision 279, 2.4 kB (checked in by dan, 5 years ago)

Import from June 1st. 2005

Line 
1Leaguerunner - PHP software to run an ultimate league
2
3Leaguerunner is a LAMP application for managing an Ultimate league.  It runs
4the Ottawa-Carleton Ultimate Association's summer, fall, and winter indoor
5leagues, handling over 500 teams and 6000 registered players in more than 60
6different divisions and three seasons of play.
7
8Prerequisites:
9
10  1) Webserver with PHP 4.3.10 or newer.
11     You should be running the most up-to-date version of PHP 4.  Leaguerunner
12     does not yet work with PHP 5.
13
14  2) MySQL database, and the relevant PHP support for MySQL
15
16  3) PHP PEAR libraries
17
18  4) PHP jpgraph library
19
20  5) (optional) the ability to run Perl scripts from the commandline for
21     maintenance tasks.
22
23Once the prerequisites are installed and configured normally (nothing really
24special is needed for Leaguerunner), you can install the software.
25
26To install Leaguerunner:
27  1) copy all of the src/ directory to some location under your server's web
28     root.  If your site's root is at /var/www/html, /var/www/html/leaguerunner
29     is a good place to put it.  You can also run it from a user's public_html
30     directory if you wish.
31
32  2) initialise the database.  First, you need to create it.  This can be done
33     by running:
34        mysql -uroot -p
35     and logging in as the MySQL root user.  Once logged in, run the following
36     SQL commands:
37       CREATE DATABASE leaguerunner;
38       GRANT ALL ON leaguerunner.* TO leaguerunner_user@localhost IDENTIFIED BY 'password';
39       FLUSH PRIVILEGES;
40     Be sure to choose an appropriate username instead of "leaguerunner_user"
41     and a better password in place of "password".
42
43     Once this is done, you will need to import the database schema using:
44        mysql leaguerunner -u leaguerunner_user -p < db/mysql_schema.sql
45     and populate some of the required initial data with:
46        mysql leaguerunner -u leaguerunner_user -p < db/mysql_initialdata.sql
47
48     Each time, you  will be prompted for the password of "leaguerunner_user",
49     so enter the one you just used when creating it.
50
51  3) Change into the directory in which you installed Leaguerunner, and edit
52     the leaguerunner.conf file.  You will need to edit
53     $DB_URL to use the username and password you used when creating the
54        database;
55     $BASE_URL to set the base URL used to access Leaguerunner.
56
57Once this is complete, you should be able to point your web browser at the base
58URL and log in using the user 'admin' with a password of 'admin'.
Note: See TracBrowser for help on using the browser.