Skip to content

How to install ClockingIT Ari version on Ubuntu 10.04

riahc3 edited this page Sep 23, 2016 · 1 revision

Hoping help anyone who has problem in installing of clockingit.

1. Install Ubuntu desktop v10.04.

2. Get update database of Ubuntu.

sudo apt-get update

3. Upgrade your Ubuntu S.O.

sudo apt-get upgrade

4. Get mysql, ruby, rubygems libraries. Someone says ruby v1.9 is much faster than v1.8. I try to install v1.9 before, but the system reports is missing files.

sudo aptitude install apache2 mysql-client mysql-server imagemagick libmagick9-dev ruby-full rubygems git-core libmysqlclient16-dev build-essential rails libmysql-ruby1.8

5. Use gem to install rails v2.3.8.

sudo gem install rails -v=2.3.8

6. Install mysql2.

sudo gem install mysql2

7. Install erubis.

sudo gem install erubis

8. Create user in mysql. I use the user name: cit.

echo “CREATE USER ’cit’@’localhost’ IDENTIFIED BY ‘cit’;” | mysql -u root -p mysql

9. Create database in mysql. I use the database name: cit.

echo “CREATE DATABASE cit DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; GRANT ALL ON cit.* TO ’cit’@’localhost’ IDENTIFIED BY ‘cit’; FLUSH PRIVILEGES;” | mysql -u root -p

10. Choose the installation directory for clockingit. I use folder: /opt

cd /opt

11. Get the source of clockingit.

git clone git://github.com/ari/clockingit.git

12. Modify the environment.rb file line 70 under /opt/clockingit/config folder. I don’t know is it correct or not. If you don’t modify it, it will cause error "undefined method `>’ for :version:Symbol.

sudo nano /opt/clockingit/config/environment.rb

from: config.gem ‘fastercsv’, :version > ‘1.5.0’
to: config.gem ‘fastercsv’, :version => ‘1.5.0’

13. Run ruby setup.rb and enter all necessary information.

cd /opt/clockingit
ruby setup.rb

14. You will get errors and need to install of missing gems.

sudo rake gems:install

15. Re-run ruby setup.rb. Please accept to load the DB schema when asked.

ruby setup.rb

16. Once you see tables created in mysql database, you are almost successful. Otherwise, please check if something goes wrong.

17. Install passenger.

gem install passenger

18. Install related libraries for passenger apache2 module.

apt-get install apache2-prefork-dev libapr1-dev libaprutil1-dev

19. Run passenger-install-apache2-module.

sudo /var/lib/gems/1.8/bin/passenger-install-apache2-module

20. Create mod file for passenger and paste the following content. Modify the path and version number if you are not same with me.

sudo nano /etc/apache2/mods-available/passenger.load

LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.2.15/ext/apache2/mod_passenger.so
PassengerRoot /var/lib/gems/1.8/gems/passenger-2.2.15
PassengerRuby /usr/bin/ruby1.8

20. Create site file for apache and paste the following content. Modify the server name and folder pathif you are not same with me.

sudo nano /etc/apache2/sites-available/clockingit

ServerName projects.example.com
DocumentRoot /opt/clockingit/public

AllowOverride all
Options -MultiViews

21. Enable mod file.

cd /etc/apache2/mods-enabled/
sudo ln -s ../mods-available/passenger.load passenger.load

22. Enable site file and disable default apache site file.

sudo a2ensite clockingit
sudo a2dissite default

23. Reload and restart apache.

sudo /etc/init.d/apache2 reload
sudo /etc/init.d/apache2 restart

24. Change the permission of clockingit folder.

25. Check the clockingit web at:

http://127.0.0.1/

PS: Thank you the guides from aaronperkins and ludolphn, as they help me a lot.

http://forum.clockingit.com/discussion/383/vm-clockingit-on-ubuntu-server-804/
http://forum.clockingit.com/discussion/755/installing-ari-branch-on-ubuntu-910/

With this version of the post, you can install clockingit on alot of VMs. how mine! you can run the clockingit on the Virtualbox with ubuntu easy..

dont forget of the implements sendmail or you will get error on create new tasks.. erro like connection refused. have two corrections for this error. Implement the sendmail or uncheck the options in the preferences of clockingIt