You are on page 1of 2

How to install WR Time Tracker

Reference:http://wrconsulting.com/cms/wrtimetracker/install_guide.htm

# Download WR Time tracker from


http://wrconsulting.com/cms/wrtimetracker/index.htm

# Ensure php-pear is installed

cd /tmp

yum install php-pear

wget http://wrconsulting.com/downloads/wrtimetracker.zip

unzip wrtimetracker.zip

mv /tmp/timetracker /var/www/yourdomainname.com

cd /var/www/yourdomainname.com

mysql -u root -p < mysql.sql

mysql -u root -p

GRANT ALL PRIVILEGES ON wrtts.* TO 'wrtts_db_user'@'localhost' IDENTIFIED BY


'some_pass' WITH GRANT OPTION;

cd /var/www/yourdomainame.com/WEB-INF

cp -a config.php config.php.orig

vi config.php

# Make relevant changes as follows

define("DSN",'mysql://root:no@localhost/wrtts');

# root is user name, no is password, wrtts is database name.

chmod 777 templates_c/

# Apache Configuration

# Make the relevant httpd.conf entries as follows

#######
<VirtualHost *:80>
ServerAdmin server-manager@megaesecure.com
DocumentRoot /var/www/yourdomain.com
ServerName yourdomain.com
ErrorLog /var/log/httpd/yourdomain.com-error_log
CustomLog /var/log/httpd/yourdomain.com-access_log common
</VirtualHost>

########

#Add the following lines in /etc/php.ini


allow_call_time_pass_reference = On
register_long_arrays = On

#Restart Apache
/etc/rc.d/init.d/httpd restart

#In case you experience any issues logging in initially, you can do the following
to troubleshoot the issue

mysql -u root -p
use wrrts;
ALTER TABLE users MODIFY COLUMN u_password varchar(48);
mysql> UPDATE users SET u_password = password('secret');