In this tutorial, we will explain how to install and configure Kanboard on an Ubuntu 18.04 VPS.
Kanboard is a free and open-source project management software that helps you to manage your projects simply and efficiently. With Kanboard, you can visualize your work, limit and pace yourself with the work in progress, and drag and drop tasks to manage your projects easily. Kanboard also provides support for reports, analytics, and it can be integrated with external services. Kanboard allows you to customize your board according to your business needs, making it a very versatile tool that can boost the productivity of any business.
Prerequisites
- For the purposes of this tutorial, we will use an Ubuntu 18.04 VPS.
- MySQL 5.6 or higher, or MariaDB 10 or higher.
- PHP 5.6 or higher with MySQL, GD, Mbstring, Openssl, Json, XML, SimpleXML, and Dom extension enabled.
- Full SSH root access or a user with sudo privileges is also required.
Step 1: Log in and Update Packages
First, we’re going to need to log into our server using SSH. You can do that by entering this command:
Remember to replace “root” with your username if you are not using the root user. Change “IP_Address” and “Port_Number” according to your server’s IP address and SSH port number.
Once you are logged in, you should update all of your packages to their latest available versions.
Once the updates are completed, we can proceed to the next step.
Step 2: Install LEMP Server
First, we will need to install the Nginx Web Server, MariaDB database server, PHP and all of the required PHP extensions onto your server. You can install all these packages using the following command:
Once all the packages are installed, start the Nginx and MariaDB services and enable them to start after system reboot:
Once you have done, you can proceed to the next step.
Step 3: Configure a Database for Kanboard
Kanboard uses MariaDB to store its data. Optionally, you can secure MariaDB installation using mysql_secure_installation script:
Just in case you need to, the default root password is blank, so you can get around password prompts by simply pressing the [Enter] key.
Once secured, log in to MariaDB shell with the following command:
Provide your root password then create a database and user for Kanboard:
Make sure to replace “password” with a unique and strong password.
Next, grant all the privileges to Kanboard using the following command:
Next, flush the privileges and exit from the shell with the following commands:
Step 4: Install Kanboard
You will need to download the latest version of Kanboard from the Git repository. You can download it to the Nginx web root directory with the following commands:
Next, change the directory to kanboard
, and rename the sample configuration file:
Next, open the config.php
file with the nano editor:
Define the database settings that you have created earlier as shown below:
Save and close the file. Then, change the ownership of kanboard directory to www-data:
Step 5: Create an Nginx Virtual Host Configuration file for Kanboard
Kanboard is now ready and configured. Let’s create a new Nginx configuration file inside the /etc/nginx/sites-available/
directory:
Add the following contents:
Make sure to replace “your-domain.com” with an actual registered domain name that is set up to work with your server.
Save and close the file. Then, enable the Nginx virtual host file using the following command:
Finally, restart the Nginx and PHP-FPM service to apply the configuration:
Step 6: Access Kanboard
Now, open your web browser and visit the URL your-domain.com
. You should see the Kanboard login screen:
Log in with username admin and the password admin. You should get the following screen:
It is highly recommended to reset the default admin password as soon as you can. To do so, click on the Admin > Users Management > admin. You should see the following page:
Now, click on the section labelled “change password”. You should get the following screen:
Now, change your admin password and click on the Save button.
Step 7: Set up a Cron Job for Kanboard
In order for Kanboard to work properly, we will need to set up a cron job that runs on a daily basis. The cron job is necessary for reports, analytics, and overdue task notifications features.
To set up a cron job, open the crontab file with the www-data user:
Add the following line:
Save and close the file.
This cron job will run and update all of the reports and analytics at 10 AM every day.
Congratulations! you have successfully installed Kanboard on Ubuntu 18.04 VPS.
Of course, you don’t have to know how to install Kanboard on Ubuntu 18.04 if you have a Managed Ubuntu Hosting plan with us. You can simply ask our support team to install Kanboard on Ubuntu 18.04 for you. They are available 24/7, and will be able to help you with the installation of Kanboard on Ubuntu 18.04.
PS. If you enjoyed reading this blog post on how to install Kanboard on Ubuntu 18.04, feel free to share it on social networks by using the shortcuts below, or simply leave a comment in the comments section. Thank you.