How to Install Leantime on Linux Mint Latest

Leantime is an open-source project management tool that lets teams collaborate and easily manage their projects. In this tutorial, we will show you how to install Leantime on Linux Mint Latest.

Prerequisites

Step 1: Install Apache

Leantime requires an Apache web server to work. If it's not already installed on your Linux Mint, use the following command to install it.

sudo apt install apache2

Step 2: Install MySQL

Leantime requires a MySQL database to store data. If you don't have MySQL installed, run the following command to download and install it.

sudo apt-get install mysql-server

Step 3: Create a Database and User for Leantime

First, connect to the MySQL server:

sudo mysql

Create a new database:

CREATE DATABASE leantime_db;

Create a new user and grant the necessary permissions for the database:

GRANT ALL PRIVILEGES ON leantime_db.* TO 'leantime_user'@'localhost' IDENTIFIED BY 'your_password';

Finally, save and exit the MySQL console:

FLUSH PRIVILEGES;
exit

Step 4: Install PHP Extensions

Leantime requires specific PHP extensions to work. Use the following commands to install them:

sudo apt-get install php7.4-mysql php7.4-curl php7.4-xml php7.4-mbstring php7.4-zip

Step 5: Install Composer

Composer is a package manager for PHP that Leantime uses. Run the following commands to download and install Composer:

curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer

Step 6: Download and Install Leantime

Create a web directory for Leantime and change to that directory:

sudo mkdir /var/www/leantime
cd /var/www/leantime

Download the latest Leantime release with git:

sudo git clone https://github.com/Leantime/leantime.git .

Install the necessary dependencies using Composer:

sudo composer install --no-dev

Change the ownership of the directory to the Apache user:

sudo chown -R www-data:www-data /var/www/leantime

Step 7: Configure Apache

Create a new virtual host file using the following command:

sudo nano /etc/apache2/sites-available/leantime.conf

Paste the following configuration into the file, replacing <your_domain> with your domain name:

<VirtualHost *:80>
ServerName <your_domain>
DocumentRoot /var/www/leantime/public

<Directory /var/www/leantime>
AllowOverride All
Require all granted
</Directory>

ErrorLog /var/log/apache2/leantime_error.log
CustomLog /var/log/apache2/leantime_access.log combined
</VirtualHost>

Save and exit the file.

Enable the new virtual host and restart Apache:

sudo a2ensite leantime.conf
sudo systemctl restart apache2

Step 8: Finish Leantime Installation

Open your web browser and go to your domain name (e.g., http://yourdomain.com). Follow the on-screen instructions to complete the installation process.

After the installation is finished, you can access the Leantime dashboard by visiting your domain name in your web browser.

Congratulations, you have successfully installed Leantime on Linux Mint Latest!

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!