{"id":6109,"date":"2020-06-12T08:07:10","date_gmt":"2020-06-12T05:07:10","guid":{"rendered":"https:\/\/kifarunix.com\/?p=6109"},"modified":"2024-03-14T21:20:47","modified_gmt":"2024-03-14T18:20:47","slug":"install-and-setup-vtiger-crm-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-and-setup-vtiger-crm-on-ubuntu-20-04\/","title":{"rendered":"Install and Setup Vtiger CRM on Ubuntu 20.04"},"content":{"rendered":"\n<p>In this tutorial, we are going to learn how to install and setup Vtiger CRM on Ubuntu 20.04. CRM is an abbreviation for Custom Relationship Management. <a rel=\"noreferrer noopener\" href=\"https:\/\/www.vtiger.com\/what-is-crm\/\" target=\"_blank\">Vtiger&nbsp;CRM<\/a> enables sales, support, and marketing teams to organize and collaborate to measurably improve customer experiences and business outcomes. In this tutorial, we are going to install the opensource version of Vtiger on Ubuntu 20.04.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing Vtiger CRM on Ubuntu 20.04<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">System Requirements<\/h4>\n\n\n\n<p>Ensure that you have at least 2 CPU cores, at least 4GB RAM and enough disk space. (Vtiger recommends 250G for attachments)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Install and Setup LAMP Stack<\/h4>\n\n\n\n<p>Vtiger is a PHP based web application. As such, ensure that you install and setup LAMP stack before you can proceed. We have covered the installation and setup of LAMP stack on Ubuntu 20.04 in our previous guide. You can follow the link below to setup LAMP stack.<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/install-lamp-stack-on-ubuntu-20-04\/\" target=\"_blank\">Install LAMP Stack on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p>Install other required PHP modules;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install php php-imap php-curl php-xml php-mysql php-mbstring<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Configure PHP for Vtiger<\/h4>\n\n\n\n<p>Open the <code><strong>\/etc\/php\/7.4\/apache2\/php.ini<\/strong><\/code> configuration file and make the following adjustments;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/etc\/php\/7.4\/apache2\/php.ini<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>memory_limit = 256M<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>max_execution_time = 60<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>log_errors = Off<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>display_errors = Off<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>short_open_tag = Off<\/code><\/pre>\n\n\n\n<p>Save and exit the file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Create Database and Database User for Vtiger<\/h3>\n\n\n\n<p>Next, once the LAMP stack is in place, login to MySQL as administrative user.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mysql -u root -p<\/code><\/pre>\n\n\n\n<p>Note that we are using MySQL 8 in this tutorial.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mysql -V<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mysql Ver 8.0.20-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))<\/code><\/pre>\n\n\n\n<p>Create Vtiger database and database user. Be sure to replace the usernames.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>create database vtiger default character set utf8 default collate utf8_general_ci;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>create user vtigeradm@localhost identified by 'myStr0nGp@ss';<\/code><\/pre>\n\n\n\n<p>Grant all privileges to Vtiger database use on the Vtiger database.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>grant all on vtiger.* to vtigeradm@localhost;<\/code><\/pre>\n\n\n\n<p>Reload the privileges table and exit the database;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>flush privileges;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>exit;<\/code><\/pre>\n\n\n\n<p>Next, implement the following global configuration for MySQL;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo -e '[mysqld]\\nsql_mode = \"\"' &gt;&gt; \/etc\/mysql\/my.cnf<\/code><\/pre>\n\n\n\n<p>Restart MySQL;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart mysql<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Download Vtiger Application Tarball<\/h3>\n\n\n\n<p>Navigate to <a rel=\"noreferrer noopener\" href=\"https:\/\/www.vtiger.com\/open-source-crm\/download-open-source\/\" target=\"_blank\">Vtiger downloads page<\/a> and the latest tarball for the opensource version of Vtiger.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget https:\/\/sourceforge.net\/projects\/vtigercrm\/files\/vtiger%20CRM%207.2.0\/Core%20Product\/vtigercrm7.2.0.tar.gz<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Extract and Install Vtiger CRM on Ubuntu 20.04<\/h3>\n\n\n\n<p>Once the download is complete, extract the tarball to your preferred web root directory. Note the Vtiger is a ready to deploy application.<\/p>\n\n\n\n<p>In this demo, we will use <code><strong>\/var\/www\/vtigercrm<\/strong><\/code> as our default Vtiger CRM web root directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mkdir \/var\/www\/vtigercrm<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>tar xzf vtigercrm7.2.0.tar.gz --strip-components=1 -C \/var\/www\/vtigercrm\/<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Create Apache Web Configuration for Vtiger CRM<\/h3>\n\n\n\n<p>Since we are using Apache as our web server for the Vtiger CRM, you need to create the web configuration file to define how to access Vtiger from web as follows;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/etc\/apache2\/sites-available\/vtigercrm.conf<\/code><\/pre>\n\n\n\n<p>Paster the following configurations making changes as per your setup.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:80&gt;\n     ServerName vtigercrm.kifarunix-demo.com\n     DocumentRoot \/var\/www\/vtigercrm\/\n\n     &lt;Directory \/var\/www\/vtigercrm\/&gt;\n        Options FollowSymlinks\n        AllowOverride All\n        Require all granted\n     &lt;\/Directory&gt;\n\n     ErrorLog \/var\/log\/apache2\/vtigercrm_error.log\n     CustomLog \/var\/log\/apache2\/vtigercrm_access.log combined\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n\n\n\n<p>If you want, you can configure Vtiger CRM with SSL\/TLS cerfiticates.<\/p>\n\n\n\n<p>Set the ownership of the Vtiger CRM web root directory to Apache user;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>chown -R www-data:www-data \/var\/www\/vtigercrm\/<\/code><\/pre>\n\n\n\n<p>Save and exit the configuration file above.<\/p>\n\n\n\n<p>Disable default Apache site;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>a2dissite 000-default.conf<\/code><\/pre>\n\n\n\n<p>Enable Vtiger CRM Apache site;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>a2ensite vtigercrm.conf<\/code><\/pre>\n\n\n\n<p>Enable Apache Rewrite Module;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>a2enmod rewrite<\/code><\/pre>\n\n\n\n<p>Check Apache configuration syntax;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apachectl -t<\/code><\/pre>\n\n\n\n<p>If you get <strong><code>Syntax OK<\/code><\/strong>, proceed to restart Apache.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart apache2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Finalize Vtiger CRM Setup from Browser<\/h3>\n\n\n\n<p>Open Apache on UFW to allow external access;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ufw allow 80\/tcp<\/code><\/pre>\n\n\n\n<p>You can then access it via the address, <strong>http:\/\/server-IP-or-hostname<\/strong>.<\/p>\n\n\n\n<p>On the welcome page, click <strong><code>Install<\/code><\/strong> button to go through the setup wizard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"804\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/welcome-install.png\" alt=\"\" class=\"wp-image-6158\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/welcome-install.png?v=1591937948 1440w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/welcome-install-768x429.png?v=1591937948 768w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/figure>\n\n\n\n<p>On the next page, accept the EULA and proceed.<\/p>\n\n\n\n<p>On the Installation prerequisites, ensure that all pre-reqs are met. Otherwise fix them before you proceed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1361\" height=\"801\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/pre-reqs.png\" alt=\"\" class=\"wp-image-6159\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/pre-reqs.png?v=1591937989 1361w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/pre-reqs-768x452.png?v=1591937989 768w\" sizes=\"(max-width: 1361px) 100vw, 1361px\" \/><\/figure>\n\n\n\n<p>On system configuration page, configure database connection details as defined above and setup your Vtiger CRM administrative account.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1381\" height=\"782\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/vtiger-system-configs.png\" alt=\"\" class=\"wp-image-9125\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/vtiger-system-configs.png?v=1623903080 1381w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/vtiger-system-configs-768x435.png?v=1623903080 768w\" sizes=\"(max-width: 1381px) 100vw, 1381px\" \/><\/figure>\n\n\n\n<p>Click Next to review the system configuration settings.<\/p>\n\n\n\n<p>On the <strong>Next<\/strong> page, select your Industry and click Next to proceed with installation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1400\" height=\"638\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/industry.png\" alt=\"\" class=\"wp-image-6161\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/industry.png?v=1591938064 1400w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/industry-768x350.png?v=1591938064 768w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/figure>\n\n\n\n<p>Wait for the installation to complete. <strong>This might take some time<\/strong>.<\/p>\n\n\n\n<p>Once the installation is done, Select the modules for the Vtiger features you would like to have.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1318\" height=\"959\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/feature-modules.png\" alt=\"\" class=\"wp-image-6162\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/feature-modules.png?v=1591938100 1318w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/feature-modules-768x559.png?v=1591938100 768w\" sizes=\"(max-width: 1318px) 100vw, 1318px\" \/><\/figure>\n\n\n\n<p>Click Next and login to you Vtiger. Use the administrative credentials you set above.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1564\" height=\"822\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/vtiger-login.png\" alt=\"\" class=\"wp-image-6163\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/vtiger-login.png?v=1591938126 1564w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/vtiger-login-768x404.png?v=1591938126 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/vtiger-login-1536x807.png?v=1591938126 1536w\" sizes=\"(max-width: 1564px) 100vw, 1564px\" \/><\/figure>\n\n\n\n<p>You can now add more widgets to your dashboard.<\/p>\n\n\n\n<p>Great. That is all on how to installing Vtiger CRM on Ubuntu 20.04. You can configure it further to your liking. Enjoy.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Further Reading<\/h3>\n\n\n\n<p><a href=\"https:\/\/community.vtiger.com\/help\/index.html\" target=\"_blank\" rel=\"noreferrer noopener\">Vtiger Documentation<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Reference<\/h3>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/community.vtiger.com\/help\/vtigercrm\/administrators\/installation.html\" target=\"_blank\">Installation &#8211; Vtiger<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Other Tutorials<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/configure-offline-authentication-via-openldap-on-macos-x\/\" target=\"_blank\" rel=\"noreferrer noopener\">Configure Offline Authentication via OpenLDAP on MacOS X<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/configure-openldap-authentication-on-macos-x\/\" target=\"_blank\" rel=\"noreferrer noopener\">Configure OpenLDAP Authentication on MacOS X<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-and-deploy-kubernetes-cluster-on-ubuntu-20-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install and Deploy Kubernetes Cluster on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/configure-highly-available-haproxy-with-keepalived-on-ubuntu-20-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">Configure Highly Available HAProxy with Keepalived on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-and-setup-haproxy-on-ubuntu-20-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install and Setup HAProxy on Ubuntu 20.04<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to learn how to install and setup Vtiger CRM on Ubuntu 20.04. CRM is an abbreviation for Custom Relationship<\/p>\n","protected":false},"author":3,"featured_media":9119,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,1686],"tags":[1691,1689,1687,1690,1200,1688],"class_list":["post-6109","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-crm","tag-configure-vtiger-on-ubuntu","tag-crm","tag-install-vtiger-crm-on-ubuntu-20-04","tag-setup-vtiger-on-ubuntu-20-04","tag-ubuntu-20-04","tag-vtiger","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/6109"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=6109"}],"version-history":[{"count":8,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/6109\/revisions"}],"predecessor-version":[{"id":21426,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/6109\/revisions\/21426"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/9119"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=6109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=6109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=6109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}