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
wget http://downloads.sourceforge.net/project/vtigercrm/vtiger%20CRM%206.2.0/Core%20Product/vtigercrm6.2.0.tar.gz

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 DATABASE vtiger;
CREATE USER 'vtiger_user'@'localhost' IDENTIFIED BY 'PaSsWoRd';
GRANT ALL PRIVILEGES ON `vtiger`.* TO 'vtiger_user'@'localhost';
FLUSH PRIVILEGES;

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

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

http://IP-ADDRESS/vtigercrm/

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.

Tutorials
Install Baun CMS on an Ubuntu 14.04 VPS
Tutorials
How to Install Jamroom on a Debian 8 VPS
Tutorials
How to install xCache on a CentOS 7 VPS
  • Manh

    ManhManh

    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

      adminadmin

      Author Reply

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


  • satheesh

    satheeshsatheesh

    Author Reply

    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

    sazzadsazzad

    Author Reply

    Forbidden

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

    how can i fixed this


    • admin

      adminadmin

      Author Reply

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


      • sazzad

        sazzadsazzad

        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

          adminadmin

          Author Reply

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

          Directory “/var/www/html” >

          AllowOverride None

          To

          Directory “/var/www/html” >

          AllowOverride All


  • Kim

    KimKim

    Author Reply

    I cant get it to work.
    I get alot of Stricts Standards errors(this is some of them), and i have checked permissions, and owner of files.

    Strict Standards: Non-static method LoggerLog::internalDebugging() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerLog.php on line 49

    Strict Standards: Non-static method LoggerLog::debug() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerPropertyConfigurator.php on line 352

    Strict Standards: Non-static method LoggerLog::log() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerLog.php on line 71

    Strict Standards: Non-static method LoggerLog::internalDebugging() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerLog.php on line 49

    Strict Standards: Non-static method LoggerManager::getLogger() should not be called statically in /var/www/html/vtigercrm/include/database/PearDatabase.php on line 20

    Strict Standards: Non-static method LoggerManager::getLoggerRepository() should not be called statically in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerManager.php on line 91

    Strict Standards: Non-static method LoggerHierarchy::singleton() should not be called statically in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerManager.php on line 103

    Strict Standards: Non-static method LoggerLog::debug() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerHierarchy.php on line 220

    Strict Standards: Non-static method LoggerLog::log() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerLog.php on line 71

    Strict Standards: Non-static method LoggerLog::internalDebugging() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerLog.php on line 49

    Strict Standards: Non-static method LoggerLog::internalDebugging() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerLog.php on line 49

    Strict Standards: Non-static method LoggerLog::debug() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerHierarchy.php on line 229

    Strict Standards: Non-static method LoggerLog::log() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerLog.php on line 71

    Strict Standards: Non-static method LoggerLog::internalDebugging() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerLog.php on line 49

    Strict Standards: Non-static method LoggerManager::getLogger() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/include/database/PearDatabase.php on line 118

    Strict Standards: Non-static method LoggerManager::getLoggerRepository() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerManager.php on line 91

    Strict Standards: Non-static method LoggerHierarchy::singleton() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerManager.php on line 103

    Strict Standards: Non-static method LoggerLevel::getLevelInfo() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerCategory.php on line 384

    Strict Standards: Non-static method LoggerManager::getLogger() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/include/database/PearDatabase.php on line 118

    Strict Standards: Non-static method LoggerManager::getLoggerRepository() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerManager.php on line 91

    Strict Standards: Non-static method LoggerHierarchy::singleton() should not be called statically, assuming $this from incompatible context in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerManager.php on line 103

    Strict Standards: Declaration of Users::insertIntoEntityTable() should be compatible with CRMEntity::insertIntoEntityTable($table_name, $module, $fileid = ”) in /var/www/html/vtigercrm/modules/Users/Users.php on line 1645

    Strict Standards: Declaration of Users::save() should be compatible with CRMEntity::save($module_name, $fileid = ”) in /var/www/html/vtigercrm/modules/Users/Users.php on line 1645

    Strict Standards: Declaration of Users::get_column_value() should be compatible with CRMEntity::get_column_value($columnname, $fldvalue, $fieldname, $uitype, $datatype = ”) in /var/www/html/vtigercrm/modules/Users/Users.php on line 1645

    Strict Standards: Declaration of Activity::get_full_list() should be compatible with CRMEntity::get_full_list($order_by = ”, $where = ”) in /var/www/html/vtigercrm/modules/Calendar/Activity.php on line 1124

    Notice: Undefined variable: mod_strings in /var/www/html/vtigercrm/modules/CustomView/CustomView.php on line 17

    Notice: Undefined variable: mod_strings in /var/www/html/vtigercrm/modules/CustomView/CustomView.php on line 18

    Notice: Undefined variable: mod_strings in /var/www/html/vtigercrm/modules/CustomView/CustomView.php on line 19

    Notice: Undefined variable: mod_strings in /var/www/html/vtigercrm/modules/CustomView/CustomView.php on line 20

    Notice: Undefined variable: mod_strings in /var/www/html/vtigercrm/modules/CustomView/CustomView.php on line 21

    Notice: Undefined variable: mod_strings in /var/www/html/vtigercrm/modules/CustomView/CustomView.php on line 22

    Notice: Undefined variable: mod_strings in /var/www/html/vtigercrm/modules/CustomView/CustomView.php on line 23

    Notice: Undefined variable: mod_strings in /var/www/html/vtigercrm/modules/CustomView/CustomView.php on line 24

    Notice: Undefined variable: mod_strings in /var/www/html/vtigercrm/modules/CustomView/CustomView.php on line 25

    Notice: Undefined variable: mod_strings in /var/www/html/vtigercrm/modules/CustomView/CustomView.php on line 26

    Notice: Undefined variable: mod_strings in /var/www/html/vtigercrm/modules/CustomView/CustomView.php on line 27

    Notice: Undefined variable: mod_strings in /var/www/html/vtigercrm/modules/CustomView/CustomView.php on line 28

    Notice: Undefined variable: mod_strings in /var/www/html/vtigercrm/modules/CustomView/CustomView.php on line 29

    Strict Standards: Declaration of Vtiger_LanguageExport::__initExport() should be compatible with Vtiger_PackageExport::__initExport($module, $moduleInstance) in /var/www/html/vtigercrm/vtlib/Vtiger/LanguageExport.php on line 16

    Strict Standards: Declaration of Vtiger_LanguageExport::export_Dependencies() should be compatible with Vtiger_PackageExport::export_Dependencies($moduleInstance) in /var/www/html/vtigercrm/vtlib/Vtiger/LanguageExport.php on line 16

    Strict Standards: Declaration of Vtiger_LanguageImport::initImport() should be compatible with Vtiger_PackageImport::initImport($zipfile, $overwrite = true) in /var/www/html/vtigercrm/vtlib/Vtiger/LanguageImport.php on line 16

    Strict Standards: Non-static method HTTP_Session::_init() should not be called statically in /var/www/html/vtigercrm/libraries/HTTP_Session/Session.php on line 803

    Strict Standards: Non-static method HTTP_Session::localName() should not be called statically in /var/www/html/vtigercrm/libraries/HTTP_Session/Session.php on line 728

    Strict Standards: Declaration of Vtiger_View_Controller::preProcessTplName() should be compatible with Vtiger_Action_Controller::preProcessTplName() in /var/www/html/vtigercrm/includes/runtime/Controller.php on line 288

    Strict Standards: Non-static method HTTP_Session::start() should not be called statically in /var/www/html/vtigercrm/includes/http/Session.php on line 38

    Strict Standards: Non-static method HTTP_Session::name() should not be called statically in /var/www/html/vtigercrm/libraries/HTTP_Session/Session.php on line 155

    Strict Standards: Non-static method HTTP_Session::detectID() should not be called statically in /var/www/html/vtigercrm/libraries/HTTP_Session/Session.php on line 158

    Strict Standards: Non-static method HTTP_Session::useCookies() should not be called statically in /var/www/html/vtigercrm/libraries/HTTP_Session/Session.php on line 291

    Strict Standards: Non-static method HTTP_Session::name() should not be called statically in /var/www/html/vtigercrm/libraries/HTTP_Session/Session.php on line 292

    Strict Standards: Non-static method HTTP_Session::name() should not be called statically in /var/www/html/vtigercrm/libraries/HTTP_Session/Session.php on line 293

    Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /var/www/html/vtigercrm/libraries/log4php.debug/helpers/LoggerOptionConverter.php:174) in /var/www/html/vtigercrm/libraries/HTTP_Session/Session.php on line 161

    Strict Standards: Non-static method HTTP_Session::id() should not be called statically in /var/www/html/vtigercrm/includes/http/Session.php on line 39

    Strict Standards: Non-static method HTTP_Session::isIdle() should not be called statically in /var/www/html/vtigercrm/includes/http/Session.php on line 44

    Strict Standards: Non-static method HTTP_Session::isExpired() should not be called statically in /var/www/html/vtigercrm/includes/http/Session.php on line 44

    Notice: Undefined index: authenticated_user_id in /var/www/html/vtigercrm/includes/main/WebUI.php on line 38

    Strict Standards: Non-static method HTTP_Session::get() should not be called statically in /var/www/html/vtigercrm/includes/http/Session.php on line 61

    Notice: Undefined index: language in /var/www/html/vtigercrm/includes/runtime/BaseModel.php on line 31

    Notice: Undefined index: current_language in /var/www/html/vtigercrm/includes/runtime/Globals.php on line 21

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/html/vtigercrm/libraries/log4php.debug/helpers/LoggerOptionConverter.php:174) in /var/www/html/vtigercrm/includes/main/WebUI.php on line 124


  • Kim

    KimKim

    Author Reply

    A small edit, i set error reporting different, now it is showing

    Notice: Only variable references should be returned by reference in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerAppender.php on line 73

    Notice: Only variable references should be returned by reference in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerPropertyConfigurator.php on line 565

    Notice: Only variable references should be returned by reference in /var/www/html/vtigercrm/libraries/log4php.debug/LoggerAppender.php on line 73

    if i remove show error, then i just get a error 500.


    • admin

      adminadmin

      Author Reply

      Hey, what do the logs say?


  • Kim

    KimKim

    Author Reply

    Which logs?
    And where to find them :) ?


  • Kim

    KimKim

    Author Reply

    these are the errors now.

    Warning: Directory /var/www/html/vtigercrm/include/utils/../../test/vtlib/HTML not writable, please alter file permissions in /var/www/html/vtigercrm/libraries/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 165

    Warning: Directory /var/www/html/vtigercrm/include/utils/../../test/vtlib/HTML not writable, please alter file permissions in /var/www/html/vtigercrm/libraries/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 165

    Warning: Directory /var/www/html/vtigercrm/include/utils/../../test/vtlib/HTML not writable, please alter file permissions in /var/www/html/vtigercrm/libraries/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 165

    Warning: mkdir(): Permission denied in /var/www/html/vtigercrm/includes/runtime/Viewer.php on line 58

    Warning: mkdir(): Permission denied in /var/www/html/vtigercrm/includes/runtime/Viewer.php on line 58

    Fatal error: Uncaught exception ‘SmartyException’ with message ‘unable to write file /var/www/html/vtigercrm/includes/runtime/../../test/templates_c/vlayout/wrt5840678c300c2’ in /var/www/html/vtigercrm/libraries/Smarty/libs/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /var/www/html/vtigercrm/libraries/Smarty/libs/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile(‘/var/www/html/v…’, ‘compileTemplateSource() #2 /var/www/html/vtigercrm/libraries/Smarty/libs/sysplugins/smarty_internal_templatebase.php(374): Smarty_Internal_TemplateBase->fetch(‘modules/Vtiger/…’, NULL, NULL, NULL, true) #3 /var/www/html/vtigercrm/includes/runtime/Viewer.php(177): Smarty_Internal_TemplateBase->display(‘modules/Vtiger/…’) #4 /var/www/html/vtigercrm/includes/main/WebUI.php(202): Vtiger_Viewer->view(‘OperationNotPer…’, ‘Vtig in /var/www/html/vtigercrm/libraries/Smarty/libs/sysplugins/smarty_internal_write_file.php on line 44


  • Kim

    KimKim

    Author Reply

    i finnaly got it to work.
    i used following command:

    [kim@localhost vtigercrm]$ getenforce
    Enforcing
    [kim@localhost vtigercrm]$ sudo setenforce 0
    [kim@localhost vtigercrm]$

    then i checked the site, and the setup wizard shows! :D


    • admin

      adminadmin

      Author Reply

      Ahhh, good old Selinux. :)
      We are glad you’ve solved the problem.


  • Kim

    KimKim

    Author Reply

    Hi again
    I know this is proberly not an issue you want to help me with.
    But i have to try, when i am trying to edit Company details, nothing shows up, and alot of the website link’s doesen’t work , until i click on home, then they work, until i go to the same page again.

    see attached image. :)
    https://www.dropbox.com/s/ocn6baryigjjjgf/2016-12-03%2014_13_44-Company%20Details%20%E2%80%93%20Google%20Chrome.png?dl=0
    /Kim