Usage & Enterprise Capabilities

Best for:Sales & Marketing AgenciesReal Estate & BrokeragesCall Centers & Inside SalesFinancial Services & Wealth ManagementB2B Software & Technology

X2CRM (also referred to as X2Engine) is a high-performance, open-source Customer Relationship Management (CRM) application that tightly integrates marketing automation, sales pipeline management, and customer service into a single, unified codebase. Originally developed by the architects behind SugarCRM, X2CRM is designed specifically for speed and usability, favoring a compact, highly optimized PHP codebase over bulky, overly complex enterprise frameworks.

The standout feature of X2CRM is its workflow engine (X2Workflow). Rather than relying on rigid, pre-defined CRM behaviors, administrators can visually design branching logic workflows. For example, a workflow can be built to monitor a specific webpage, score a visitor, wait for them to submit a web lead form, automatically route the lead to the least busy sales rep, and instantly trigger a personalized introductory email.

For production, X2CRM acts as the central nervous system for sales velocity, utilizing its robust REST API to consume leads from external ad platforms, score them, and push them to specific reps' dashboards in real-time.

Key Benefits

  • All-in-One Engine: Eliminates the need to bridge a separate CRM (like Salesforce) with a separate marketing automation tool (like Marketo).

  • Web Tracking: Embed the X2CRM tracking pixel on your website. When an anonymous visitor later fills out a form, their entire prior browsing history is retroactively attached to their new CRM contact record.

  • X2Workflow: Visually automate practically any business rule without needing a developer to write PHP hooks.

  • Custom Modules: Dynamically create new database modules directly from the admin UI (e.g., creating a module to track "Vehicles" for an auto dealership) without touching source code.

Production Architecture Overview

X2CRM relies on a standard, highly-available LAMP/LEMP stack:

  • Web Server: Nginx or Apache. (Nginx with PHP-FPM is recommended for the fastest UI response times).

  • Application Logic: The X2Engine codebase, written in PHP utilizing the Yii Framework.

  • Database: MySQL or MariaDB to house the relationship data and workflow states.

  • Cron Engine: System cron is critical. It fires the triggers for the X2Workflow engine, dispatches scheduled email campaigns, and manages background lead routing.

Implementation Blueprint

Implementation Blueprint

Prerequisites

Assume a fresh Ubuntu 22.04 LTS server.

sudo apt update && sudo apt upgrade -y

# Install Nginx, MariaDB, and PHP (PHP 7.4/8.0 depending on specific X2CRM branch requirements)
sudo apt install nginx mariadb-server php-fpm php-mysql php-curl php-gd php-mbstring php-xml php-zip unzip wget -y
shell

Database Provisioning

Create the dedicated X2CRM database.

sudo mysql -u root

CREATE DATABASE x2crmdb CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'x2user'@'localhost' IDENTIFIED BY 'secure_db_password';
GRANT ALL PRIVILEGES ON x2crmdb.* TO 'x2user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
sql

Application Installation

Download the application and place it in the web directory.

cd /tmp
# Download the open-source edition from their source or GitHub
wget https://github.com/X2Engine/X2Engine/archive/refs/heads/master.zip -O x2crm.zip
unzip x2crm.zip

sudo mv X2Engine-master /var/www/html/x2crm
sudo chown -R www-data:www-data /var/www/html/x2crm
sudo chmod -R 755 /var/www/html/x2crm
shell

PHP Configuration Requirements

X2CRM requires higher limits than standard PHP configurations for heavy data imports.

Edit your php.ini (e.g., /etc/php/8.1/fpm/php.ini):

memory_limit = 512M
upload_max_filesize = 100M
post_max_size = 100M
max_execution_time = 300
date.timezone = "America/New_York"
ini

Restart PHP-FPM: sudo systemctl restart php8.1-fpm

Configuring the Web Server (Nginx)

Create an Nginx configuration file: /etc/nginx/sites-available/x2crm

server {
    listen 80;
    server_name crm.mycompany.com;
    root /var/www/html/x2crm;
    index index.php index.html index.htm;

    # Protect internal configuration files
    location ~* \.(ini|log|conf)$ {
        deny all;
    }

    location / {
        try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}

Enable the configuration:

sudo ln -s /etc/nginx/sites-available/x2crm /etc/nginx/sites-enabled/
sudo systemctl reload nginx
shell

Web-Based Installer

Navigate to http://crm.mycompany.com in your browser. The X2CRM installer interface will prompt you for the database credentials (x2crmdb, x2user, secure_db_password) and will create the initial Admin user.

Critical Production Step: System Cron

The dynamic workflows and email systems will completely fail if Cron is not running.

sudo crontab -e -u www-data
shell

Add the X2CRM scheduled task runner (runs every minute):

* * * * * /usr/bin/php /var/www/html/x2crm/cron.php > /dev/null 2>&1

Security and Best Practices

  • SSL/TLS: Use Certbot to instantly secure the deployment. CRM data is highly sensitive PII; it must never cross the network unencrypted.

  • MTA Setup: Configure the CRM to route outbound emails and campaigns through an external SMTP provider (like SendGrid) via the Administrator settings in the GUI, not via localhost PHP mail.

  • Web Tracker Setup: In the Admin panel, locate the "Web Tracker" settings. Copy the generated Javascript snippet and place it in the <head> of your public-facing marketing website (WordPress, Webflow, etc.). This instantly begins linking public web traffic to CRM lead profiles.

Technical Support

Stuck on Implementation?

If you're facing issues deploying this tool or need a managed setup on Hostinger, our engineers are here to help. We also specialize in developing high-performance custom web applications and designing end-to-end automation workflows.

Engineering trusted by teams at

Managed Setup & Infra

Production-ready deployment on Hostinger, AWS, or Private VPS.

Custom Web Applications

We build bespoke tools and web dashboards from scratch.

Workflow Automation

End-to-end automated pipelines and technical process scaling.

Faster ImplementationRapid Deployment
100% Free Audit & ReviewTechnical Analysis