Howto to install actiTIME on a Debian server

actiTIME Basic is a free easy-to-use timesheet optimized for your basic time tracking needs. It provides you with functionality for:

  • time tracking and reporting
  • user schedule and overtime control
  • project and task management

For more information visit the website: http://www.actitime.com/fw_features.html

This article describes how to install actiTIME on a Debian server or a Debian derived OS such as Ubuntu. actiTIME comes in three flavors and one of them is freeware ;-) That’s the one we are going to install.

So let’s start!

These are the requirements for actiTIME:

  • Java 2 SDK 1.4.2 or higher
  • Apache Tomcat Application Server 4.1 or higher
  • MySQL database, it will need MySQL 4.1.17+, 5.0.x or 5.1.x installed

Install Java
Add “non-free” to the Debian Lenny repositories (/etc/apt/sources.list)

  1. apt-get update && apt-get install sun-java6-jdk
  2. update-java-alternatives -s java-6-sun
  3. echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' | tee -a /etc/environment

Install Tomcat
Install it by running:

  1. apt-get install tomcat5.5 tomcat5.5-admin

Change /etc/tomcat5.5/tomcat-users.xml

  1. <?xml version='1.0' encoding='utf-8'?>
  2. <tomcat-users>
  3.   <role rolename="admin"/>
  4.   <role rolename="manager"/>
  5.   <role rolename="tomcat"/>
  6.   <user username="tomcat" password="Some-Obscure-Password" roles="admin,manager,tomcat"/>
  7. </tomcat-users>

Also edit /etc/default/tomcat5.5 and change the value from “yes” to “no” and restart Tomcat.

  1. TOMCAT5_SECURITY=no
  2. /etc/init.d/tomcat5.5 restart

Install mysql-server and create database
If you don’t already have a running mysql server then install it by running:

  1. apt-get install mysql-server

Then setup a database, database user and give it some rights.

  1. mysql -uroot -p
  2. CREATE DATABASE actitime;
  3. CREATE USER 'actitime-usr'@'localhost' IDENTIFIED BY 'Another-Obscure-Password';
  4. GRANT ALL ON actitime.* TO 'actitime-usr'@'localhost';
  5. flush privileges;
  6. \q

Install actiTIME
Download ActiTime and upload it to your server. (http://actitime.com/download.html

  1. cd /var/lib/tomcat5.5/webapps
  2. tar xvzf /tmp/actitime15_unix.tar.gz
  3. cd actitime
  4. bash ./setup_mysql.sh -mysqlhome /usr -username actitime-usr -password Another-Obscure-Password -host localhost -dbname actitime

Settings file (db name and user including pwd) is found in /var/lib/tomcat5.5/webapps/actitime/WEB-INF/classes/com/actimind/actitime/AT.Properties

You should now be able to connect to your actiTIME. Point a browser to http://your.host.name:8180/actitime

Now I have a bit difficulty with this setting. This means that I have to shoot a another hole in my vlan ACL. Let’s make this happen on port 80 shall we!

Install libapache2-mod-jk
Connect Apache2 to Tomcat5.5.

  1. apt-get install libapache2-mod-jk

Create /etc/apache2/workers.properties file with the following content:

  1. #
  2. # This file provides minimal jk configuration properties needed to
  3. # connect to Tomcat.
  4. #
  5. # We define a worked named 'default'
  6. #
  7.  
  8. workers.tomcat_home=/var/lib/tomcat6
  9. workers.java_home=/usr/lib/jvm/java-6-sun
  10. ps=/
  11. worker.list=default
  12.  
  13. worker.default.port=8009
  14. worker.default.host=localhost
  15. worker.default.type=ajp13
  16. worker.default.lbfactor=1

Then add the following to /etc/apache2/apache2.conf

  1. # Where to find workers.properties
  2. JkWorkersFile /etc/apache2/workers.properties
  3.  
  4. # Where to put jk logs
  5. JkLogFile /var/log/apache2/mod_jk.log
  6.  
  7. # Set the jk log level [debug/error/info]
  8. JkLogLevel info
  9.  
  10. # Select the log format
  11. JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

Finally create a new VirtualHost in /etc/apache2/sites-available and place the following content beteen the VirtualHost tags:

  1. # JkOptions indicate to send SSL KEY SIZE,
  2. JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
  3.  
  4. # JkRequestLogFormat set the request format
  5. JkRequestLogFormat "%w %V %T"
  6.  
  7. # Tomcat serves everything by default
  8. JkMount / default
  9. JkMount /* default
  10.  
  11. # Apache serves the following URLs
  12. JkUnMount /static default
  13. JkUnMount /static/* default

Now enable the VirtualHost and reload Apache2:

  1. a2ensite <site-name> && /etc/init.d/apache reload

So now ActiTime should also be available on http://your.host.name/actitime

Point a browser to the URL and log on with the default credentials. (username: admin / password: manager)
AND CHANGE IT!

Post to Twitter

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Comments »

 
  • Adam Gliniany says:

    Hi!
    I read Your artuicle, did what You said and all I can get is error no. 500 from tomcat server. Do You have any idea, what could it be?

  • Raymond Mul says:

    Hi nathan,

    Error 500 is a very common error and does not provide detailed information. Can you confirm that tomcat server is running with provided examples?
    (apt-get install tomcat5.5-webapps)

 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

 

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.