How it helps your business
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
- 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.
How we deploy this for you
Security Hardened
Firewalls, SSL, and hardened kernels out of the box.
Performance Tuned
Optimized for speed with cache and DB fine-tuning.
Automated Backups
Daily off-site backups so you never lose your data.
Private Cloud
You own the server and the data. No middleman.
Implementation Blueprint
Prerequisites
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 -yDatabase Provisioning
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;Application Installation
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/x2crmPHP Configuration Requirements
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"sudo systemctl restart php8.1-fpmConfiguring the Web Server (Nginx)
/etc/nginx/sites-available/x2crmserver {
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;
}
}sudo ln -s /etc/nginx/sites-available/x2crm /etc/nginx/sites-enabled/
sudo systemctl reload nginxWeb-Based Installer
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
sudo crontab -e -u www-data* * * * * /usr/bin/php /var/www/html/x2crm/cron.php > /dev/null 2>&1Security 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.
Includes Security & performance standards
Best place to host X2CRM
We recommend Hostinger for its reliability and low cost. It's the perfect home for your new apps, featuring easy setup and 24/7 support.
Get Started on HostingerCompare Similar Tools
vTiger CRM
vTiger CRM is a comprehensive, open-source CRM application equipping sales, support, and marketing teams to enhance customer experiences.
Twenty CRM
Twenty CRM is a modern, beautifully designed, open-source CRM built with a focus on developer experience and extreme extensibility.