How to Install Vtiger CRM on Ubuntu 20.04

Install Vtiger CRM on Ubuntu 20.04

In this article, we will have explained the necessary steps to install and configure Vtiger CRM on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

vTiger CRM is free and open-source for customer-related management for your business. It is written in PHP and uses MariaDB to store data. It is specially designed for easy use to allow entrepreneurs to collaborate and automate engaging experiences with customers throughout the process also includes inventory, email, project management, and other tools, providing a complete business management suite.

Install Vtiger CRM on Ubuntu 20.04

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade

Step 2. Install LAMP Stack.

WordPress is built with PHP. You can host it like you would any other web app is written in PHP. So, you’re going to need to set Ubuntu up as either a LAMP server. If you haven’t done so already, use our traditional LAMP guide to set up Ubuntu to serve PHP before you continue.

Step 3. Download Vtiger CRM on Ubuntu 20.04.

First, you need to download the latest version of vTiger CRM from their official website. You can download it by the following command:


Once the download is complete, extract the tarball to your web root directory:

mkdir /var/www/vtigercrm
tar xzf vtigercrm7.2.0.tar.gz --strip-components=1 -C /var/www/vtigercrm/

Step 4. Create a Database for Vtiger CRM.

Vtiger CRM uses MariaDB database to store all its data. Log in to your MariaDB server with the following command and enter your MariaDB root password:

mysql -u root -p

Once you’re in the MariaDB console, create a new database:

CREATE USER 'vtiger'@'localhost' IDENTIFIED BY 'Your-Strong-Password';
GRANT ALL PRIVILEGES ON vtiger.* TO 'vtiger'@'localhost';

Step 5. Configuring Apache for Vtiger CRM.

You need to create an apache virtual host file for vTiger CRM. You can create it with the following command:

nano /etc/apache2/sites-available/vtigercrm.conf
<VirtualHost *:80>
     DocumentRoot /var/www/vtigercrm/

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

     ErrorLog /var/log/apache2/vtigercrm_error.log
     CustomLog /var/log/apache2/vtigercrm_access.log combined

For the new configuration to take effect, restart the Apache service by typing:

sudo a2ensite vtigercrm.conf
sudo systemctl restart apache2

Set the ownership of the Vtiger CRM web root directory to Apache user:

chown -R www-data:www-data /var/www/vtigercrm/

Step 6. Configure Firewall.

Open Apache on UFW to allow external access:

ufw allow 80/tcp

Step 7. Accessing Vtiger CRM.

In the last step of this guide, we need to access the Vtiger CRM Web Interface and finish the installation. To finish the installation, open your browser and navigate to:

That’s all you need to do to install Vtiger CRM on Ubuntu 20.04 Focal Fossa. I hope you find this quick tip helpful. If you have questions or suggestions, feel free to leave a comment below.