Vtiger CRM

Vtiger CRM

Vtiger CRM adalah perangkat lunak manajemen hubungan pelanggan (CRM) open source terkemuka di dunia dengan lebih dari 5 juta unduhan. Perangkat lunak ini dirancang untuk membantu bisnis mengelola kontak, mengotomatisasi proses penjualan, dan meningkatkan layanan pelanggan. Vtiger CRM menawarkan fitur-fitur seperti manajemen kontak, manajemen pipeline penjualan, otomatisasi pemasaran, dan integrasi dengan lebih dari 500 aplikasi yang umum digunakan di tempat kerja. Selain itu, Vtiger menyediakan platform low-code bernama VTAP untuk memudahkan penyesuaian dan pengembangan lebih lanjut sesuai kebutuhan bisnis.

1. Persyaratan Sistem

System requirements untuk menjalankan Vtiger CRM 8:

  • Apache 2.1+
  • MySQL 5.1+
    • storage_engine = InnoDB
    • local_infile = ON
    • sql_mode = NO_ENGINE_SUBSTITUTION
  • PHP 8.0+
    • php-imap
    • php-curl
    • php-xml
    • memory_limit (min. 256MB)
    • max_execution_time (min. 60 seconds)
    • error_reporting (E_ERROR & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED)
    • display_errors = OFF
    • short_open_tag = OFF
  • RAM 4 GB
  • Disk 250 GB

Sebelum memulai deploy, siapkan:

  • VPS atau server dengan OS Ubuntu 24.04
  • Akses SSH ke server
  • Domain yang sudah diarahkan ke server

2. Persiapan Server

Update sistem

sudo apt update
sudo apt upgrade -y

Install Apache

sudo apt install apache2 -y

Install Certbot

sudo apt install certbot python3-certbot-apache -y

Install MySQL

sudo apt install mysql-server -y

Tambah repository PPA ondrej/php

sudo add-apt-repository ppa:ondrej/php -y
sudo apt upgrade -y

Install PHP 8.3 dan extension yang dibutuhkan

sudo apt install libapache2-mod-php8.3 php8.3 php8.3-cli php8.3-common \
  php8.3-apcu php8.3-mbstring php8.3-gd php8.3-intl \
  php8.3-xml php8.3-soap php8.3-bcmath php8.3-mysql php8.3-zip \
  php8.3-curl php8.3-tidy php8.3-imagick php8.3-imap -y

3. Konfigurasi PHP

Buka file konfigurasi php.ini

sudo nano /etc/php/8.3/apache2/php.ini

Atur konfigurasi berikut

memory_limit = 256M
max_execution_time = 60

Restart Apache

sudo systemctl restart apache2

4. Konfigurasi MySQL

Buka file konfigurasi mysqld.cnf

sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf

Masukkan konfigurasinya di dalam blok [mysqld]

default-storage-engine = InnoDB
local_infile = 1
sql_mode = "STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"

Restart MySQL

sudo systemctl restart mysql

Buat Database

Login ke MySQL

sudo mysql

Buat database dan user

CREATE DATABASE vtiger;
CREATE USER 'vtiger'@'localhost' IDENTIFIED BY 'rahasia';
GRANT ALL PRIVILEGES ON vtiger.* TO 'vtiger'@'localhost';
FLUSH PRIVILEGES;
exit

5. Konfigurasi Apache

Buat file konfigurasi virtual host, misal untuk crm.contoh.com

sudo nano /etc/apache2/sites-available/crm.contoh.com.conf

Masukkan konfigurasinya

<VirtualHost *:80>
    ServerName crm.contoh.com
    DocumentRoot /var/www/crm.contoh.com
    <Directory /var/www/crm.contoh.com>
        Options -Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>
    ErrorLog /var/log/apache2/crm.contoh.com_error.log
    CustomLog /var/log/apache2/crm.contoh.com_access.log combined
</VirtualHost>

Aktifkan modul dan virtual host

sudo a2enmod rewrite
sudo a2ensite crm.contoh.com
sudo systemctl restart apache2

Request sertifikat SSL

sudo certbot --non-interactive \
    -m [email protected] \
    --agree-tos \
    --no-eff-email \
    --apache -d crm.contoh.com \
    --redirect	

6. Install Vtiger CRM

Download Vtiger CRM

wget https://onboardcloud.dl.sourceforge.net/project/vtigercrm/vtiger%20CRM%208.3.0/Core%20Product/vtigercrm8.3.0.tar.gz

Ekstrak vtigercrm8.3.0.tar.gz

tar xzvf vtigercrm8.3.0.tar.gz

Pindahkan direktori hasil ekstrak

sudo mv vtigercrm /var/www/crm.contoh.com

Ubah user-group direktori

sudo chown -R www-data:www-data /var/www/crm.contoh.com

Akses https://crm.contoh.com untuk melanjutkan instalasi

  1. Klik Install untuk memulai instalasi
  2. Klik I Agree untuk menyetujui lisensi
  3. Pemeriksaan PHP, klik Next
  4. Masukkan database information, system information, dan admin user information, lalu Next
  5. Masukkan nama, email, dan pilih jenis industri, lalu Next
  6. Pilih modul yang mau diaktifkan, atau bisa dilakukan setelahnya, lalu Next
  7. Ditampilkan informasi pengaturan, klik Get Started

Deploy Vtiger CRM telah selesai, siap digunakan