Operating System CentOS

How to Install Vtiger CRM Open Source Edition 8.4 on Ubuntu 24.04 LTS

Set up Vtiger CRM Open Source Edition 8.4 on Ubuntu 24.04 LTS with Apache, MySQL and PHP 8.3, then finish the installation in the web wizard.

This guide installs Vtiger CRM Open Source Edition 8.4.0, the current stable release (published in July 2025), on an Ubuntu 24.04 LTS server with Apache, MySQL 8.0 and PHP 8.3. At the end you have a working CRM at your own domain, with the scheduler running from cron.

CentOS 7 reached end of life in June 2024, so it is no longer a platform to install a CRM on. Ubuntu 24.04 is used here rather than 26.04 for a concrete reason: Vtiger requires the PHP IMAP extension, PHP removed that extension from its core in version 8.4, and Ubuntu 26.04 ships PHP 8.5 without a php-imap package. Ubuntu 24.04 provides PHP 8.3 with php8.3-imap from the standard repositories, which matches Vtiger's stated support for PHP 8.x.

Requirements

  • Ubuntu 24.04 LTS with a user that has sudo rights.
  • Vtiger's documentation recommends 4 GB of RAM and plenty of disk space for file attachments. A small team can start with 2 GB.
  • A domain or subdomain pointing to the server, for example crm.example.com.
  • Vtiger's own requirements: Apache, MySQL with the InnoDB engine, PHP 8.0 or later with the imap, curl and xml extensions.

Install Apache, MySQL and PHP

sudo apt update
sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql php-imap php-curl php-xml php-mbstring php-gd php-zip php-intl

The first three extensions after php-mysql are the ones Vtiger names; mbstring, gd, zip and intl are used for multi-byte text, charts and images, and module packages. Enable Apache's rewrite module:

sudo a2enmod rewrite

Apply the PHP settings Vtiger expects

Put the values from the Vtiger installation manual in a separate file, so package updates do not overwrite them:

sudo nano /etc/php/8.3/apache2/conf.d/99-vtiger.ini
memory_limit = 256M
max_execution_time = 120
error_reporting = E_ERROR & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
display_errors = Off
short_open_tag = Off
upload_max_filesize = 32M
post_max_size = 32M

The first five lines are the documented requirements (256 MB or more of memory, at least 60 seconds of execution time). The upload limits are optional and only raise the maximum attachment size.

Configure MySQL and create the database

Vtiger needs local_infile enabled and a relaxed SQL mode. Create a configuration file for both:

sudo nano /etc/mysql/mysql.conf.d/vtiger.cnf
[mysqld]
sql_mode = NO_ENGINE_SUBSTITUTION
local_infile = ON
default_storage_engine = InnoDB
sudo systemctl restart mysql

Open the MySQL shell as root and create a database and a dedicated user. Replace the password with your own:

sudo mysql
CREATE DATABASE vtiger DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
CREATE USER 'vtiger'@'localhost' IDENTIFIED BY 'choose-a-strong-password';
GRANT ALL PRIVILEGES ON vtiger.* TO 'vtiger'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Download and unpack Vtiger

The release archive is published on the project's SourceForge page, linked from the official download page:

cd /tmp
wget -O vtigercrm8.4.0.tar.gz "https://sourceforge.net/projects/vtigercrm/files/vtiger%20CRM%208.4.0/Core%20Product/vtigercrm8.4.0.tar.gz/download"

Unpack it into /var/www and give the web server ownership, because the installer and the application write to the tree (configuration file, storage, cache, modules):

sudo tar -xzf vtigercrm8.4.0.tar.gz -C /var/www
sudo chown -R www-data:www-data /var/www/vtigercrm

The archive unpacks to a directory named vtigercrm; check with ls /var/www and adjust the path below if yours differs.

Create the Apache virtual host

sudo nano /etc/apache2/sites-available/vtiger.conf
<VirtualHost *:80>
    ServerName crm.example.com
    DocumentRoot /var/www/vtigercrm

    <Directory /var/www/vtigercrm>
        Options -Indexes +FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/vtiger_error.log
    CustomLog ${APACHE_LOG_DIR}/vtiger_access.log combined
</VirtualHost>

Enable the site, disable the default one and restart Apache so the PHP settings are loaded too:

sudo a2ensite vtiger.conf
sudo a2dissite 000-default.conf
sudo apache2ctl configtest
sudo systemctl restart apache2

If UFW is active, allow web traffic:

sudo ufw allow 'Apache Full'

A CRM carries customer data and logins, so put it behind HTTPS before you create real accounts. With the DNS record in place, sudo apt install certbot python3-certbot-apache followed by sudo certbot --apache -d crm.example.com obtains and installs a Let's Encrypt certificate.

Run the web installer

Open http://crm.example.com/index.php (or the HTTPS address) in a browser and follow the wizard:

  1. Accept the licence. The open source edition is distributed under the Vtiger Public License.
  2. Review the installation prerequisites page. Every PHP setting should be listed as meeting the recommended value; if one is not, correct 99-vtiger.ini, restart Apache and reload the page.
  3. Enter the database details: host localhost, user vtiger, the password you chose and database vtiger. Leave the option to create a new database unticked, because it already exists.
  4. Set the admin user's password, e-mail address, currency, date format and time zone. The currency cannot be changed afterwards, so choose it carefully.
  5. Confirm the settings and let the installer create the tables. This takes a few minutes.

When it finishes you are taken to the login page and can sign in as admin.

Schedule the Vtiger cron job

Workflows, scheduled reports, mail scanning and reminders are run by Vtiger's scheduler, which must be called regularly. Add a cron entry for the web server user:

sudo crontab -u www-data -e
*/15 * * * * cd /var/www/vtigercrm && /usr/bin/php -f vtigercron.php >/dev/null 2>&1

You can see when each task last ran in the CRM under Settings, Automation, Scheduler.

After the installation

  • Back up the database with mysqldump vtiger and the /var/www/vtigercrm/storage directory together; attachments live in the file system, not in the database.
  • Keep the number of administrator accounts small. A security advisory published in July 2026 (CVE-2026-23698) describes how an administrator can upload executable code through the module import feature in Vtiger 8.4.0 and earlier, so an admin login is equivalent to shell access as the web server user.
  • Upgrades between releases are done with the migration patch published next to each release on the download page, not by unpacking a new full archive over the old one.

The requirements are listed in the Vtiger installation manual.

Frequently asked questions

Can I use MariaDB instead of MySQL?

Vtiger's manual only names MySQL. MariaDB is widely used with Vtiger in practice, but if you want to stay on the documented path, use the mysql-server package as shown here.

Can I run Vtiger 8.4 on Ubuntu 26.04 or with PHP 8.4 and later?

Not with distribution packages alone. The IMAP extension Vtiger requires was moved out of PHP's core to PECL in PHP 8.4, and Ubuntu 26.04 has no php-imap package. You would have to build the extension yourself, and Vtiger has not announced support for those PHP versions. Ubuntu 24.04 with PHP 8.3 is the straightforward choice.

The installer complains about sql_mode. What is wrong?

MySQL 8.0 enables strict modes by default. Check that /etc/mysql/mysql.conf.d/vtiger.cnf exists, restart MySQL and verify with sudo mysql -e "SELECT @@sql_mode;". The result should be NO_ENGINE_SUBSTITUTION.

Is there an official Docker image?

The download page links a Vtiger image on Docker Hub, but at the time of writing it is for version 8.3.0, one release behind. For 8.4.0 the archive installation described here is the documented route.

Share story:

Continue reading other guides on How VPS.