How to Install Traq on Debian Latest

Traq is an open-source project management system that can be used to manage projects, tasks, and bugs. In this tutorial, we will be discussing how to install Traq on Debian latest.

Prerequisites

Before we begin, make sure that you have the following prerequisites:

Step 1: Update the system

Firstly, update your Debian system with the latest patches and packages. Open the terminal and run the following command:

sudo apt update && sudo apt upgrade -y

Step 2: Install Apache

Next, we need to install the Apache webserver to serve the Traq application. To install Apache webserver, run the following command in the terminal:

sudo apt install apache2 -y

After installation, start the apache webserver with the following command:

sudo systemctl start apache2

You can check the status of the Apache webserver by running the following command:

sudo systemctl status apache2

Step 3: Install MariaDB

Traq requires a database to store its data. We are using MariaDB as our database server. To install MariaDB, run the following command:

sudo apt install mariadb-server -y

After installation, start MariaDB with the following command:

sudo systemctl start mariadb

You should secure MariaDB installation by running the following command:

sudo mysql_secure_installation

Step 4: Create a MariaDB Database and User for Traq

We will now create a database and a user that will be used by Traq to interact with the database. Run the following command to login to the MariaDB server:

sudo mysql

Inside the MariaDB console, run the following commands:

CREATE DATABASE traqdb;
CREATE USER 'traquser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON traqdb.* TO 'traquser'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit;

Replace 'password' with a strong password of your choice.

Step 5: Install PHP and Required PHP Modules

Traq is a PHP application, so we need to install PHP on our system. To install PHP along with required PHP modules, run the following command:

sudo apt install php libapache2-mod-php php-mysql php-gd php-xml php-cliphp-curl php-mbstring -y

Restart the Apache webserver to reflect the changes by running the following command:

sudo systemctl restart apache2

Step 6: Download and Install Traq

Download and install Traq by running the following commands:

cd /var/www/html

sudo wget https://github.com/traq/traq/releases/download/4.2.2/traq-4.2.2.zip

sudo apt install unzip -y
sudo unzip traq-4.2.2.zip

sudo chown -R www-data:www-data traq

Step 7: Configure Traq

Rename the config.sample.ini file to config.ini:

cd /var/www/html/traq/include
sudo cp config.sample.ini config.ini

Edit the config.ini file and modify the database settings to match your MariaDB database:

nano config.ini

Make sure to update the following lines:

db_user = "traquser"
db_password = "password"
db_name = "traqdb"

Step 8: Accessing Traq Web Interface

You can now access the Traq web interface by visiting http://your-server-ip/traq in your favorite web browser. The first time you access the web interface, you will be prompted to create an administrator account.

That’s it! You have successfully installed Traq on your Debian system. You can now start using Traq to manage your projects, tasks, and bugs.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!