{"id":9141,"date":"2021-06-19T00:20:35","date_gmt":"2021-06-18T21:20:35","guid":{"rendered":"https:\/\/kifarunix.com\/?p=9141"},"modified":"2024-03-18T20:55:35","modified_gmt":"2024-03-18T17:55:35","slug":"install-vtiger-crm-on-rocky-linux-8","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-vtiger-crm-on-rocky-linux-8\/","title":{"rendered":"Install Vtiger CRM on Rocky Linux 8"},"content":{"rendered":"\n<p>In this tutorial, we are going to learn how to install and setup Vtiger CRM on Rocky Linux 8. CRM is an abbreviation for Custom Relationship Management.&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.vtiger.com\/what-is-crm\/\" target=\"_blank\">Vtiger&nbsp;CRM<\/a>&nbsp;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 Rocky Linux 8.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install and Setup Vtiger CRM on Rocky Linux 8<\/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 Rocky Linux 8 in our previous guide. You can follow the link below to setup LAMP stack.<\/p>\n\n\n\n<p>Run system update<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf update<\/code><\/pre>\n\n\n\n<p>Install Apache;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install httpd<\/code><\/pre>\n\n\n\n<p>Install MariaDB on Rocky Linux by following the link below;<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-mariadb-10-x-on-rocky-linux-8\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install MariaDB 10.x on Rocky Linux 8<\/a><\/p>\n\n\n\n<p>Install PHP 7.4 other required PHP modules;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install epel-release\ndnf install https:\/\/rpms.remirepo.net\/enterprise\/remi-release-8.rpm<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf module reset php\ndnf module enable php:remi-7.4<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install php php-imap php-curl php-xml php-mysql php-mbstring<\/code><\/pre>\n\n\n\n<p>Sample output;<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>\nDependencies resolved.\n============================================================================================================================================================================\n Package                              Architecture                 Version                                                         Repository                          Size\n============================================================================================================================================================================\nInstalling:\n php                                  x86_64                       7.4.20-1.el8.remi                                               remi-modular                       3.0 M\n php-common                           x86_64                       7.4.20-1.el8.remi                                               remi-modular                       1.2 M\n php-imap                             x86_64                       7.4.20-1.el8.remi                                               remi-modular                       102 k\n php-mbstring                         x86_64                       7.4.20-1.el8.remi                                               remi-modular                       529 k\n php-pecl-mysql                       x86_64                       1.0.0-0.23.20190415.d7643af.el8.remi.7.4                        remi-modular                        44 k\n php-xml                              x86_64                       7.4.20-1.el8.remi                                               remi-modular                       215 k\nInstalling dependencies:\n libc-client                          x86_64                       2007f-24.el8                                                    epel                               564 k\n libsodium                            x86_64                       1.0.18-2.el8                                                    epel                               162 k\n oniguruma5php                        x86_64                       6.9.7.1-1.el8.remi                                              remi-safe                          210 k\n php-json                             x86_64                       7.4.20-1.el8.remi                                               remi-modular                        77 k\n php-mysqlnd                          x86_64                       7.4.20-1.el8.remi                                               remi-modular                       260 k\n php-pdo                              x86_64                       7.4.20-1.el8.remi                                               remi-modular                       144 k\nInstalling weak dependencies:\n php-cli                              x86_64                       7.4.20-1.el8.remi                                               remi-modular                       4.6 M\n php-fpm                              x86_64                       7.4.20-1.el8.remi                                               remi-modular                       1.6 M\n php-opcache                          x86_64                       7.4.20-1.el8.remi                                               remi-modular                       336 k\n php-sodium                           x86_64                       7.4.20-1.el8.remi                                               remi-modular                        89 k\n\nTransaction Summary\n============================================================================================================================================================================\nInstall  16 Packages\n\nTotal download size: 13 M\nInstalled size: 55 M\nIs this ok [y\/N]: y\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Configure PHP for Vtiger<\/h4>\n\n\n\n<p>Open the&nbsp;<code><strong>\/etc\/php.ini<\/strong><\/code>&nbsp;configuration file and make the following adjustments;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/etc\/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 MariaDB 10.5 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 15.1 Distrib 10.5.10-MariaDB, for Linux (x86_64) using readline 5.1<\/code><\/pre>\n\n\n\n<p>Create Vtiger database and database user. Be sure to replace the names of the database and user.<\/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<p>Create database user and grant all privileges to Vtiger database user on the Vtiger database.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>grant all on vtiger.* to vtigeradm@localhost identified by 'myStr0nGp@ss';<\/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\/my.cnf<\/code><\/pre>\n\n\n\n<p>Restart MariaDB;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart mariadb<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Download Vtiger Application Tarball<\/h3>\n\n\n\n<p>Navigate to&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.vtiger.com\/open-source-crm\/download-open-source\/\" target=\"_blank\">Vtiger downloads page<\/a>&nbsp;and the latest tarball for the opensource version of Vtiger.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dnf install wget<\/code><\/pre>\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<\/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&nbsp;<code><strong>\/var\/www\/vtigercrm<\/strong><\/code>&nbsp;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<p>Paste the command below on the terminal to create the configuration file. Be sure to make the necessary changes.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat &gt; \/etc\/httpd\/conf.d\/vtigercrm.conf &lt;&lt; EOL\n&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\/httpd\/vtigercrm_error.log\n     CustomLog \/var\/log\/httpd\/vtigercrm_access.log combined\n&lt;\/VirtualHost&gt;\nEOL<\/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 apache: \/var\/www\/vtigercrm\/<\/code><\/pre>\n\n\n\n<p>Save and exit the configuration file above.<\/p>\n\n\n\n<p>Check Apache configuration syntax;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>httpd -t<\/code><\/pre>\n\n\n\n<p>If you get&nbsp;<strong><code>Syntax OK<\/code><\/strong>, proceed to restart Apache.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart httpd<\/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 Firewalld to allow external access;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>firewall-cmd --add-port=80\/tcp --permanent\nfirewall-cmd --reload<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Managing SELinux<\/h3>\n\n\n\n<p>Well, I personally don&#8217;t advise you to disable SELinux due to security reasons. If you have time to troubleshoot any would be SELinux issue, leave it running. Otherwise, for the purposes of the demo, we have set SELinux to run in permissive mode in this demo.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo setenforce 0<\/code><\/pre>\n\n\n\n<p>To completely set it to run permissively, run the command below and reboot the system;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sed -i 's\/=enforcing\/=permissive\/' \/etc\/selinux\/config<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl reboot<\/code><\/pre>\n\n\n\n<p>You can then access it via the address,&nbsp;<strong>http:\/\/server-IP-or-hostname<\/strong>.<\/p>\n\n\n\n<p>On the welcome page, click&nbsp;<strong><code>Install<\/code><\/strong>&nbsp;button to go through the setup wizard.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"804\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/welcome-install.png\" alt=\"Install and Setup Vtiger CRM on Rocky Linux 8\" 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><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/welcome-install.png\"><\/a><\/p>\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.<a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/pre-reqs.png\"><\/a><\/p>\n\n\n\n<p>On system configuration page, configure database connection details as defined above and setup your Vtiger CRM administrative account.<a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/06\/vtiger-system-configs.png\"><\/a><\/p>\n\n\n\n<p>Click Next to review the system configuration settings.<\/p>\n\n\n\n<p>On the&nbsp;<strong>Next<\/strong>&nbsp;page, select your Industry and click Next to proceed with installation.<a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/industry.png\"><\/a><\/p>\n\n\n\n<p>Wait for the installation to complete.&nbsp;<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<p><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/feature-modules.png\"><\/a>Click Next and login to you Vtiger. Use the administrative credentials you set above.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><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><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2020\/06\/vtiger-login.png\"><\/a>You can now add more widgets to your dashboard.<\/p>\n\n\n\n<p>Great. That is all on how to install and setup Vtiger CRM on Rocky Linux 8. 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:\/\/kifarunix.com\/install-and-setup-vtiger-crm-on-ubuntu-20-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install and Setup Vtiger CRM on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-and-setup-vtiger-crm-on-debian-10\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install and Setup Vtiger CRM on Debian 10<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to learn how to install and setup Vtiger CRM on Rocky Linux 8. CRM is an abbreviation for Custom<\/p>\n","protected":false},"author":1,"featured_media":9119,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[1686,121],"tags":[3705,3704,3587,3703,3702],"class_list":["post-9141","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-crm","category-howtos","tag-cmr","tag-install-vtiger-crm-rocky-linux","tag-rocky-linux-8","tag-rocky-linux-vtiger","tag-vriger-rocky-linux","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\/9141"}],"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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=9141"}],"version-history":[{"count":8,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/9141\/revisions"}],"predecessor-version":[{"id":21786,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/9141\/revisions\/21786"}],"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=9141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=9141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=9141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}