Anuko Time Tracker Quick Installation Guide for Linux
- Check Prerequisites, whether you have the following installed, configured, and working properly:
1. Apache web server
2. PHP4 or PHP5, both with
- GD with Freetype fonts support included
- mbstring included
3. MySQL server
- Download Time Tracker Distribution
$ wget http://www.anuko.com/downloads/time_tracker/anuko_time_tracker.zip
- Unpack distribution files into a selected directory for Apache web server. If you have a previous deployment of time tracker - backup it, remove it and then deploy the new code.
$ cd /path/to/DocumentRoot/
$ unzip anuko_time_tracker.zip
$ cd timetracker
- Set world write file access permissions for directory WEB-INF/templates_c/
$ chmod 777 WEB-INF/templates_c
- Create MySQL database and MySQL user. Grant SQL permissions.
$ mysql -h localhost -u root -p
mysql> CREATE DATABASE timetracker;
mysql> GRANT ALL PRIVILEGES ON timetracker.* TO 'ttuser'@'localhost' IDENTIFIED BY 'yourpassword';
- Copy and modify config file
$ cd WEB-INF
$ cp config.php.dist config.php
- Change $dsn value to reflect your database connection parameters (user name and password):
define("DSN",'mysql://ttuser:yourpassword@localhost/timetracker');
- If you install the time tracker into a sub-directory of your site, make sure this is reflected in the APP_NAME parameter in WEB-INF/config.php. For example, for http://localhost/timetracker/ set
define("APP_NAME",'timetracker');
- Install or update MySQL schema and initial data:
http://localhost/timetracker/dbinstall.php
- Remove or disable install script:
$ cd ../..
$ chmod 000 dbinstall.php
- Login to your time tracker site as admin with the password "secret" (without quotes) and change admin password.
http://localhost/timetracker
Click Options menu item.
Troubleshooting
If you see a problem similar to this one: "The installation script missing the file "DB.php" in timetracker package. This is missing in dbinstall.php on line 29 an in initialize.php on line 44." See if this will help:
http://www.anuko.com/forum/viewtopic.php?t=948
Anuko Time Tracker Installation Guide