Install Vtiger CRM on CentOS 7

VtigerVtiger CRM is an open-source Customer Relationship Management application written in PHP. It offers features such as sales automation, marketing automation, analysis and reporting, customer support and many others. It is very easy to install this software on a Linux VPS, so if you like to have your own CRM application on your server you can proceed with the following steps.

In this tutorial we will show you how to install the latest version of Vtiger CRM on a CentOS 7 VPS. You need to have LAMP stack installed on your server. It is pretty easy to install LAMP stack on your Linux VPS if you do not have it already installed. Also, make sure that your server runs PHP version 5.5 or above since the latest version of Vtiger CRM (at the moment of writing is 6.2.0) requires PHP 5.5 or above. To check the PHP version on your server, you can log in to your server via SSH and run the following command:

php -v

Next, you need to upgrade your system software to the latest version available. You can do this by executing the following command:

yum update

The update should take no more than few minutes to complete, so once your system software is up to date you can proceed with the other steps of this tutorial.

Navigate to the /opt directory on your server and download the latest version of Vtiger CRM:

cd /opt

Once you download the archive, you can proceed and unpack the files:

tar -xzvf vtigercrm6.2.0.tar.gz

Change the ownership of the files and move them to your /var/www/html directory:

chown apache: -R vtigercrm
mv vtigercrm /var/www/html/

Vtiger CRM requires MySQL database to store its data and now it is the right time for you to create the database for your application. To do that you need to log in to your MySQL server:

mysql -u root -p

And execute the following commands one by one:

CREATE USER 'vtiger_user'@'localhost' IDENTIFIED BY 'PaSsWoRd';
GRANT ALL PRIVILEGES ON `vtiger`.* TO 'vtiger_user'@'localhost';

For security reasons you should use stronger password for your database user.

Now, access your Vtiger CRM application using your favorite web browser.


Replace IP-ADDRESS with the IP address of your CentOS VPS.

Continue with the online installation. You will have to enter the database information, create an Administrator user and set a password as well as some other similar things. Moreover, you may have to change some settings in your php.ini file. The installation setup will provide you with more information about the settings you need to change. Once you make the changes in your php.ini file, it is necessary to restart your Apache web server.

systemctl restart httpd

Of course you don’t have to do any of this if you use one of our Linux VPS hosting services, in which case you can simply ask our expert Linux admins to install Vtiger CRM for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

How to install phpBB 3 on a CentOS 6 VPS
How to install October CMS on a CentOS 7 VPS
Install CumulusClips on CentOS 7
  • Manh


    Author Reply

    Hi there, Thank you for your post. It’s usefull.
    I’m trying to intall vtiger on Cent6.5 but got troble in step 3:
    vtigerdb -> This Database is not found.Try changing the Database settings

    Although I created database with name vtigerdb.

    Could you please support me in agent case.
    Thank you so much,

    • admin


      Author Reply

      Double check if you are using the correct database name/username/password.

  • satheesh

    Thanks for sharing and it was very informative..I need more tips from your side..I am working in Erp Development Company In India

  • sazzad


    Author Reply


    You don’t have permission to access /vtigercrm/ on this server.

    how can i fixed this

    • admin


      Author Reply

      Did you check your web server log files? You should start debugging from there.

      • sazzad


        Author Reply

        drwxr-xr-x. 2 root root 4096 Sep 5 20:26 anaconda
        drwxr-x—. 2 root root 22 Sep 5 20:26 audit
        -rw-r–r–. 1 root root 13306 Sep 5 23:01 boot.log
        -rw——-. 1 root utmp 0 Sep 5 20:16 btmp
        drwxr-xr-x. 2 chrony chrony 6 Nov 24 2015 chrony
        -rw——-. 1 root root 4321 Sep 6 00:51 cron
        drwxr-xr-x. 2 lp sys 54 Sep 5 13:26 cups
        -rw-r–r–. 1 root root 122335 Sep 6 2016 dmesg
        -rw-r–r–. 1 root root 122187 Sep 5 20:26 dmesg.old
        -rw-r–r–. 1 root root 3825 Sep 5 23:49 firewalld
        drwx–x–x. 2 root gdm 4096 Sep 5 23:01 gdm
        drwxr-xr-x. 2 root root 6 Mar 10 19:28 glusterfs
        drwx——. 2 root root 102 Sep 5 23:36 httpd
        -rw-r–r–. 1 root root 292584 Sep 5 23:39 lastlog
        drwx——. 3 root root 17 Sep 5 20:16 libvirt
        -rw——-. 1 root root 396 Sep 5 23:01 maillog
        drwxr-x—. 2 mysql mysql 24 Sep 5 23:39 mariadb
        -rw——-. 1 root root 475641 Sep 6 00:52 messages
        drwxr-xr-x. 3 root root 17 Sep 5 20:16 pluto
        drwx——. 2 root root 6 Jun 10 2014 ppp
        drwxr-xr-x. 2 root root 6 Nov 20 2015 qemu-ga
        drwxr-xr-x. 2 root root 40 Sep 5 23:53 sa
        drwx——. 3 root root 16 Sep 5 20:15 samba
        -rw——-. 1 root root 10352 Sep 6 00:48 secure
        drwx——. 2 root root 6 Jun 10 2014 speech-dispatcher
        -rw——-. 1 root root 0 Sep 5 20:16 spooler
        -rw——-. 1 root root 0 Sep 5 20:14 tallylog
        drwxr-xr-x. 2 root root 22 Sep 5 13:26 tuned
        -rw-r–r–. 1 root root 80 Sep 5 23:01 wpa_supplicant.log
        -rw-rw-r–. 1 root utmp 9216 Sep 6 00:50 wtmp
        -rw-r–r–. 1 root root 83889 Sep 6 00:53 Xorg.0.log
        -rw-r–r–. 1 root root 21451 Sep 5 14:06 Xorg.0.log.old
        -rw-r–r–. 1 root root 2300 Sep 5 14:06 Xorg.1.log
        -rw——-. 1 root root 1464 Sep 5 23:46 yum.log

        what should i change here, can u help me

        • admin


          Author Reply

          Try editing the following file /etc/httpd/conf/httpd.conf and change from

          Directory “/var/www/html” >

          AllowOverride None


          Directory “/var/www/html” >

          AllowOverride All