How to Install Collabtive on Ubuntu 18.04

Install Collabtive on Ubuntu 18.04

In this tutorial we are going to learn how to install Collabtive on Ubuntu 18.04. We will also install and configure its prerequisites. Collabtive is an open source web-based project management software written in PHP, that allow you to keep track of your projects. The main features of Collabtive include: task lists, milestones, time tracking, messaging / instant messaging, document management, role-based user permissions, reporting, exporting, calendaring and multilingual interface.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 18.04 Bionic Beaver minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Collabtive on Ubuntu 18.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing LAMP on Ubuntu 18.04.

You should check out this LAMP stack install tutorial for Ubuntu 18.04, if you haven’t installed LAMP yet. Once it’s installed, come back here and read on. We also will install the required packages for LAMP stack and the important PHP extension that Collabtive relies on:

apt-get install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-mysql php7.2-gd php7.2-xml php7.2-cli php7.2-zip

Step 3. Installing Collabtive on Ubuntu 18.04.

First, download the latest version of Collabtive , then extract it using the following commands:

wget https://sourceforge.net/projects/collabtive/files/latest/download -O collabtive.zip
unzip collabtive.zip -d /var/www/html/collabtive/

Set the proper file permissions for Collabtive to write to certain files and directories:

sudo chown www-data:www-data -R /var/www/html/collabtive/
sudo chmod +w /var/www/html/collabtive/config/standard/config.php
sudo chmod +w /var/www/html/collabtive/files
sudo chmod +w /var/www/html/collabtive/templates_c

Step 4. Create a database for Drupal.

Next, we need to create a database for the Collabtive installation:

mysql -uroot -p

Run the following command to create a database for Collabtive:

MariaDB [(none)]> CREATE DATABASE collabtivedb;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON collabtivedb.* TO 'collabtiveuser'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION;
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> exit

Step 5. Configure Apache web server for Collabtive.

For this you can take the default config as a template:

cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/collabtive.conf

Now edit the currently created Config as follows:

nano /etc/apache2/sites-available/collabtive.conf

Modify the virtual host file for your Collabtive site to resemble the example below:

<VirtualHost *:80>
 ServerAdmin admin@example.com
 DocumentRoot /var/www/html/collabtive
 ServerName example.com
 ServerAlias www.example.com

<Directory /var/www/html/collabtive/>
 Options FollowSymlinks
 AllowOverride All
 Require all granted
 </Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Finally, reload the web server as suggested, for the changes to take effect:

a2ensite collabtive.conf
a2enmod rewrite
systemctl restart apache2.service

Step 6. Accessing Collabtive open source web-based project management.

Now you can access the Collabtive web install wizard in your browser by entering the domain name or http://yourdomain/install.php to continue your Collabtive installation.

Congratulation’s! You have successfully install and configured Collabtive on your Ubuntu 18.04 server. Thanks for using this tutorial installing Collabtive open source web-based project management on Ubuntu 18.04 LTS (Bionic Beaver) system.