{"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
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. Vtiger 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 Rocky Linux 8.<\/p>\n\n\n\n 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 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 Run system update<\/p>\n\n\n\n Install Apache;<\/p>\n\n\n\n Install MariaDB on Rocky Linux by following the link below;<\/p>\n\n\n\n Install MariaDB 10.x on Rocky Linux 8<\/a><\/p>\n\n\n\n Install PHP 7.4 other required PHP modules;<\/p>\n\n\n\n Sample output;<\/p>\n\n\n\n Open the Save and exit the file.<\/p>\n\n\n\n Next, once the LAMP stack is in place, login to MySQL as administrative user.<\/p>\n\n\n\n Note that we are using MariaDB 10.5 in this tutorial.<\/p>\n\n\n\n Create Vtiger database and database user. Be sure to replace the names of the database and user.<\/p>\n\n\n\n Create database user and grant all privileges to Vtiger database user on the Vtiger database.<\/p>\n\n\n\n Reload the privileges table and exit the database;<\/p>\n\n\n\n Next, implement the following global configuration for MySQL;<\/p>\n\n\n\n Restart MariaDB;<\/p>\n\n\n\n Navigate to Vtiger downloads page<\/a> and the latest tarball for the opensource version of Vtiger.<\/p>\n\n\n\n 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 In this demo, we will use 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 Paste the command below on the terminal to create the configuration file. Be sure to make the necessary changes.<\/p>\n\n\n\n If you want, you can configure Vtiger CRM with SSL\/TLS cerfiticates.<\/p>\n\n\n\n Set the ownership of the Vtiger CRM web root directory to Apache user;<\/p>\n\n\n\n Save and exit the configuration file above.<\/p>\n\n\n\n Check Apache configuration syntax;<\/p>\n\n\n\n If you get Open Apache on Firewalld to allow external access;<\/p>\n\n\n\n Well, I personally don’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 To completely set it to run permissively, run the command below and reboot the system;<\/p>\n\n\n\n You can then access it via the address, http:\/\/server-IP-or-hostname<\/strong>.<\/p>\n\n\n\n On the welcome page, click <\/a><\/p>\n\n\n\n On the next page, accept the EULA and proceed.<\/p>\n\n\n\n On the Installation prerequisites, ensure that all pre-reqs are met. Otherwise fix them before you proceed.<\/a><\/p>\n\n\n\n On system configuration page, configure database connection details as defined above and setup your Vtiger CRM administrative account.<\/a><\/p>\n\n\n\n Click Next to review the system configuration settings.<\/p>\n\n\n\n On the Next<\/strong> page, select your Industry and click Next to proceed with installation.<\/a><\/p>\n\n\n\n Wait for the installation to complete. This might take some time<\/strong>.<\/p>\n\n\n\n Once the installation is done, Select the modules for the Vtiger features you would like to have.<\/p>\n\n\n\n <\/a>Click Next and login to you Vtiger. Use the administrative credentials you set above.<\/p>\n\n\n\n <\/a>You can now add more widgets to your dashboard.<\/p>\n\n\n\n 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 Install and Setup Vtiger CRM on Ubuntu 20.04<\/a><\/p>\n\n\n\nInstall and Setup Vtiger CRM on Rocky Linux 8<\/h2>\n\n\n\n
Prerequisites<\/h3>\n\n\n\n
System Requirements<\/h4>\n\n\n\n
Install and Setup LAMP Stack<\/h4>\n\n\n\n
dnf update<\/code><\/pre>\n\n\n\n
dnf install httpd<\/code><\/pre>\n\n\n\n
dnf install epel-release\ndnf install https:\/\/rpms.remirepo.net\/enterprise\/remi-release-8.rpm<\/code><\/pre>\n\n\n\n
dnf module reset php\ndnf module enable php:remi-7.4<\/code><\/pre>\n\n\n\n
dnf install php php-imap php-curl php-xml php-mysql php-mbstring<\/code><\/pre>\n\n\n\n
\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
Configure PHP for Vtiger<\/h4>\n\n\n\n
\/etc\/php.ini<\/strong><\/code> configuration file and make the following adjustments;<\/p>\n\n\n\n
vim \/etc\/php.ini<\/code><\/pre>\n\n\n\n
memory_limit = 256M<\/code><\/pre>\n\n\n\n
max_execution_time = 60<\/code><\/pre>\n\n\n\n
log_errors = Off<\/code><\/pre>\n\n\n\n
display_errors = Off<\/code><\/pre>\n\n\n\n
short_open_tag = Off<\/code><\/pre>\n\n\n\n
Create Database and Database User for Vtiger<\/h3>\n\n\n\n
mysql -u root -p<\/code><\/pre>\n\n\n\n
mysql -V<\/code><\/pre>\n\n\n\n
mysql Ver 15.1 Distrib 10.5.10-MariaDB, for Linux (x86_64) using readline 5.1<\/code><\/pre>\n\n\n\n
create database vtiger default character set utf8 default collate utf8_general_ci;<\/code><\/pre>\n\n\n\n
grant all on vtiger.* to vtigeradm@localhost identified by 'myStr0nGp@ss';<\/code><\/pre>\n\n\n\n
flush privileges;<\/code><\/pre>\n\n\n\n
exit;<\/code><\/pre>\n\n\n\n
echo -e '[mysqld]\\nsql_mode = \"\"' >> \/etc\/my.cnf<\/code><\/pre>\n\n\n\n
systemctl restart mariadb<\/code><\/pre>\n\n\n\n
Download Vtiger Application Tarball<\/h3>\n\n\n\n
dnf install wget<\/code><\/pre>\n\n\n\n
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
Extract and Install Vtiger CRM<\/h3>\n\n\n\n
\/var\/www\/vtigercrm<\/strong><\/code> as our default Vtiger CRM web root directory.<\/p>\n\n\n\n
mkdir \/var\/www\/vtigercrm<\/code><\/pre>\n\n\n\n
tar xzf vtigercrm7.2.0.tar.gz --strip-components=1 -C \/var\/www\/vtigercrm\/<\/code><\/pre>\n\n\n\n
Create Apache Web Configuration for Vtiger CRM<\/h3>\n\n\n\n
cat > \/etc\/httpd\/conf.d\/vtigercrm.conf << EOL\n<VirtualHost *:80>\n ServerName vtigercrm.kifarunix-demo.com\n DocumentRoot \/var\/www\/vtigercrm\/\n\n <Directory \/var\/www\/vtigercrm\/>\n Options FollowSymlinks\n AllowOverride All\n Require all granted\n <\/Directory>\n\n ErrorLog \/var\/log\/httpd\/vtigercrm_error.log\n CustomLog \/var\/log\/httpd\/vtigercrm_access.log combined\n<\/VirtualHost>\nEOL<\/code><\/pre>\n\n\n\n
chown -R apache: \/var\/www\/vtigercrm\/<\/code><\/pre>\n\n\n\n
httpd -t<\/code><\/pre>\n\n\n\n
Syntax OK<\/code><\/strong>, proceed to restart Apache.<\/p>\n\n\n\n
systemctl restart httpd<\/code><\/pre>\n\n\n\n
Finalize Vtiger CRM Setup from Browser<\/h3>\n\n\n\n
firewall-cmd --add-port=80\/tcp --permanent\nfirewall-cmd --reload<\/code><\/pre>\n\n\n\n
Managing SELinux<\/h3>\n\n\n\n
sudo setenforce 0<\/code><\/pre>\n\n\n\n
sed -i 's\/=enforcing\/=permissive\/' \/etc\/selinux\/config<\/code><\/pre>\n\n\n\n
systemctl reboot<\/code><\/pre>\n\n\n\n
Install<\/code><\/strong> button to go through the setup wizard.<\/p>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
Further Reading<\/h3>\n\n\n\n