This article describes how to install Vtiger CRM on Ubuntu 18.04 system. Please configure the Apache web server, PHP, and MariaDB database first. After operating the dependencies, you can download Vtiger and install and configure it.
1.Install PHP and MariaDB
Install PHP and its extensions by running the following command on a terminal:
sudo apt install -y php php-cli php-mysql php-common php-zip php-mbstring php-xmlrpc php-curl php-soap php-gd php-xml php-intl php-ldap
You also need to install the libapache2-mod-php extension:
sudo apt install -y libapache2-mod-php
Then configure php.ini:
sudo vim /etc/php/7.2/apache2/php.ini
Set as:
date.timezone = Asia / Shanghai
memory_limit = 256M
upload_max_filesize = 64M
display_errors = On
log_errors = Off
After installing PHP and configuring, please install MariaDB database, please refer to the steps for installing MariaDB 10.4 on Ubuntu 18.04 system, or you can use MySQL database, please refer to the entire process of installing MySQL 8.0.11 on Ubuntu 18.04 / 16.04 command line.
After installing the database, you can log in as root and create a database for vTiger CRM:
$ mysql -u root -p
CREATE USER 'vtiger' @ 'localhost' IDENTIFIED BY 'StrongPassword';
CREATE DATABASE vtiger;
GRANT ALL PRIVILEGES ON vtiger. * TO 'vtiger' @ 'localhost';
FLUSH PRIVILEGES;
QUIT
Then check if you can log in to the Database shell as the vtiger user, the command is mysql -u vtiger -p, as shown below:
2.Download Vtiger CRM on Ubuntu 18.04 and install
Vtiger CRM download address.
The next step is to download Vtiger to Ubuntu 18.04 using the wget command:
wget https://sourceforge.net/projects/vtigercrm/files/vtiger%20CRM%207.1.0/Core%20Product/vtigercrm7.1.0.tar.gz
Extract the archive to get the files:
tar xvf vtigercrm7.1.0.tar.gz
Move the vtigercrm folder and its contents to / srv / vtigercrm:
sudo mv vtigercrm / srv / vtigercrm
Then set the appropriate permissions:
chown -R www-data: www-data / srv / vtigercrm
3.Install and configure Apache2
Install Apache2 using the following command:
sudo apt -y install apache2
sudo a2enmod rewrite
Then create a virtual host file for Vtiger
sudo vim /etc/apache2/sites-enabled/vtigercrm.conf
Add the following code:
<VirtualHost *: 80>
ServerAdmin webmaster@example.com
ServerName crm.example.com
ServerAlias www.crm.example.com
DocumentRoot / srv / vtigercrm /
<Directory / srv / vtigercrm />
Options + FollowSymlinks
AllowOverride All
Require all granted
</ Directory>
ErrorLog /var/log/apache2/vtigercrm_error.log
CustomLog /var/log/apache2/vtigercrm_access.log combined
</ VirtualHost>
Verification file:
$ sudo apachectl -t
Syntax OK
Restart the apache2 service:
sudo systemctl restart apache2
Then open http://crm.example.com in your browser (please change to the target domain name) to complete the installation.
The first page displayed will be the installation wizard, click Agree to accept the license agreement.
Confirm all installation basic conditions check Click the Next button.
The configuration is as follows:
1]. Provide database and system information.
Database type: MySQL
Host name: localhost
User name: vtiger
Password: StrongPassword
Database name: vtiger
2]. Provide system information
Provide admin user password
Provide Last Name
Provide email address for admin user
Set date format and time zone
Confirm the settings and click Next
Set your industry type and finish installing Vtiger
Complete installation on Ubuntu 18.04 system and log in to Control Center to start managing Vtiger CRM.