Updated: 28 September 2026 · Applies to: vtiger CRM 8.4 on Ubuntu 24.04 (PHP 8.3)

Ubuntu 18.04 is end of life. vtiger CRM is an open-source customer relationship management system. The current open-source version is 8.4, which supports PHP 8.1 to 8.3, so Ubuntu 24.04 (PHP 8.3) is a good match.

Before you start

  • A VPS or dedicated server with a fresh Ubuntu 24.04 / Debian 12 or AlmaLinux 9 / Rocky Linux 9 installation, and root or sudo access.
  • A domain or subdomain pointing to the server (an A record), if you want HTTPS.
  • The system updated: apt update && apt upgrade or dnf upgrade.

Install Apache, MariaDB and PHP

Ubuntu 24.04 / Debian 12:

apt install apache2 mariadb-server php libapache2-mod-php php-mysql php-xml php-mbstring php-curl php-zip php-gd php-intl
systemctl enable --now apache2 mariadb

AlmaLinux 9 / Rocky Linux 9 (choose a current PHP stream first):

dnf module reset php && dnf module enable php:8.3
dnf install httpd mariadb-server php php-fpm php-mysqlnd php-xml php-mbstring php-gd php-intl php-opcache php-pecl-zip
systemctl enable --now httpd mariadb php-fpm

Secure MariaDB (set a root password or keep socket login, remove test data): mariadb-secure-installation.

Also install: apt install php-imap php-curl php-xml php-mbstring php-zip php-gd php-intl (Ubuntu/Debian) and restart Apache.

On AlmaLinux/Rocky: dnf install php-imap php-xml php-mbstring php-gd php-intl, then systemctl restart php-fpm httpd.

Create a database

mariadb -u root -p
CREATE DATABASE vtiger CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'vtigeruser'@'localhost' IDENTIFIED BY 'Strong-Password';
GRANT ALL PRIVILEGES ON vtiger.* TO 'vtigeruser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Download vtiger CRM

Download the latest open-source tarball from vtiger.com (Open Source CRM › Download), then extract it: tar xzf vtigercrm*.tar.gz -C /var/www/ && chown -R www-data:www-data /var/www/vtigercrm.

Create the Apache site

Create /etc/apache2/sites-available/example.com.conf (Ubuntu/Debian) or /etc/httpd/conf.d/example.com.conf (AlmaLinux/Rocky):

<VirtualHost *:80>
    ServerName example.com
    ServerAlias www.example.com
    DocumentRoot /var/www/vtigercrm
    <Directory /var/www/vtigercrm>
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

Ubuntu/Debian: a2ensite example.com && a2enmod rewrite && systemctl reload apache2. AlmaLinux/Rocky: apachectl configtest && systemctl reload httpd.

Add a free SSL certificate

apt install certbot python3-certbot-apache                     # Ubuntu / Debian
dnf install epel-release && dnf install certbot python3-certbot-apache   # AlmaLinux / Rocky
certbot --apache -d example.com -d www.example.com

Certbot installs a timer that renews the certificate automatically; test it with certbot renew --dry-run.

Run the installer

Open https://example.com and follow the wizard: accept the licence, check the requirements (it lists PHP settings to change, such as max_execution_time and error_reporting), enter the database details and create the admin user.

Note: On AlmaLinux 9 / Rocky Linux 9 SELinux is on. Let Apache/Nginx write where the application needs it, for example: semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/vtigercrm/storage(/.*)?" && restorecon -R /var/www/vtigercrm, and allow outgoing connections if the app calls APIs: setsebool -P httpd_can_network_connect 1.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Managed dedicated servers

our engineers look after the server for you, from $135 a month.

Was this answer helpful?

Still stuck? Open a ticket