Open-source marketing automation does not have to mean giving up your data to a SaaS vendor. Mautic puts email campaigns, contact tracking, and lead nurturing under your own roof. Running it on Ubuntu 24.04 takes more effort than signing into HubSpot, but the reward is full control over your stack, your costs, and your customer data. You decide when to update, how to scale, and where your information lives.
Before you start, point a domain at your server and make sure your Ubuntu 24.04 instance has at least 2 GB of RAM. Mautic is not lightweight; PHP will consume memory when it rebuilds large segments or processes campaign logic. If you plan to send to thousands of contacts, 4 GB makes the experience far smoother.
Build the LEMP Foundation
Mautic expects a LEMP stack: Nginx, MySQL, and PHP. On Ubuntu 24.04, the default PHP version is 8.3, which works well with current Mautic releases. Start by updating your package list, then install Nginx and MySQL Server. After that, pull in PHP-FPM and the exact extensions Mautic needs:
- php-fpm
- php-mysql
- php-imap
- php-curl
- php-gd
- php-xml
- php-mbstring
- php-zip
- php-intl
- php-bcmath
Each extension serves a real purpose. The IMAP extension reads bounce messages and unsubscribe replies. GD handles image processing for thumbnails. Mbstring and Intl manage character sets and translations across languages. BCMath gives you precise math for lead scoring and currency calculations. Do not skip any of them, or the installer will complain halfway through.
If Apache is already installed, remove it. Both web servers want port 80 and 443. Running them side by side causes silent failures that are frustrating to debug. A clean apt remove apache2 followed by apt autoremove prevents that headache entirely.
Tune PHP and the Database
Mautic’s installer and background jobs are memory-hungry. Open your PHP-FPM configuration file, located at /etc/php/8.3/fpm/php.ini, and raise the memory limit to 512 MB. Set the upload size to 50 MB so you can import contact lists and asset bundles without hitting arbitrary walls. After saving, restart PHP-FPM to apply the changes. While you are at it, bump post_max_size to match your upload limit; otherwise PHP rejects large multipart form submissions even when upload_max_filesize looks correct.
Next, create a dedicated MySQL database and user. Call the database whatever you like, but keep the username and password in a password manager. Mautic stores every contact action, campaign decision, and email open event in these tables, so granting broad privileges to a single-purpose account limits exposure if something else on the server is compromised.
Install Mautic and Its Tooling
Download the latest stable Mautic release and extract it into /var/www/html/mautic. Set the directory owner to www-data so the web server can write cache files, logs, and local configuration updates. On Ubuntu, that means running chown -R www-data:www-data /var/www/html/mautic.
You also need Composer and npm installed on the server. Composer resolves PHP dependencies, and even if you deploy from the pre-built release archive, you will need Composer later when adding marketplace plugins or running manual updates. Npm matters if you ever customize themes or build frontend assets from source. Having both tools ready now saves you from scrambling when the project evolves.
Configure Nginx and Lock It Down
Your Nginx virtual host should point its root directory to /var/www/html/mautic and treat index.php as the default index. Route PHP requests to the Unix socket that PHP-FPM opens, typically at /run/php/php8.3-fpm.sock. A solid server block includes a try_files directive that falls back to the front controller, plus a location block that denies access to hidden files starting with a dot. Mautic ships with .htaccess files meant for Apache, but Nginx ignores them, so explicit deny rules in your virtual host keep your logs and temp directories private.
Before you run the web-based installer, get a TLS certificate. Use Certbot with the Nginx plugin to pull a free Let’s Encrypt certificate and automatically rewrite your HTTP traffic to HTTPS. Mautic handles login credentials and contact data; there is no excuse for serving it over plain text.
Cron Jobs Are the Engine
ഈ ഘട്ടം ഒഴിവാക്കാനാവാത്തതാണ്. ഷെഡ്യൂൾ ചെയ്ത ടാസ്ക്കുകൾ (scheduled tasks) ഇല്ലാതെ, Mautic എന്നത് ഒന്നും ചെയ്യാത്ത ഒരു ഡാഷ്ബോർഡ് മാത്രമാണ്. ആപ്ലിക്കേഷൻ ക്യാമ്പയിൻ ആക്ഷനുകൾ, ഇമെയിൽ അയയ്ക്കൽ, സെഗ്മെന്റ് പുനർനിർണ്ണയം (segment recalculations) എന്നിവ ഡാറ്റാബേസിൽ ക്യൂ ചെയ്യുന്നു, തുടർന്ന് അവ പ്രോസസ്സ് ചെയ്യാൻ കമാൻഡ് ലൈനിനെ ആശ്രയിക്കുന്നു.
ഈ ബാക്ക്ഗ്രൗണ്ട് ജോലികൾ കൈകാര്യം ചെയ്യുന്നതിനായി Mautic യൂസർക്കായി cron jobs സെറ്റ് ചെയ്യുക:
- സെഗ്മെന്റുകൾ അപ്ഡേറ്റ് ചെയ്യുക
- ക്യാമ്പയിനുകൾ പ്രവർത്തിപ്പിക്കുക
- ഇമെയിലുകൾ അയയ്ക്കുക
- ബൗൺസുകൾ (bounces) ശേഖരിക്കുക
പ്രായോഗികമായി പറഞ്ഞാൽ, വ്യത്യസ്ത ഇടവേളകളിൽ Mautic-ന്റെ കൺസോൾ കമാൻഡുകൾ (console commands) വിളിക്കുക എന്നാണ് ഇതിനർത്ഥം. സെഗ്മെന്റ് റീബിൽഡുകൾ ഓരോ മണിക്കൂറിലും പ്രവർത്തിപ്പിക്കാം. ക്യാമ്പയിൻ ട്രിഗറുകളും ഇമെയിൽ ക്യൂ പ്രോസസ്സിംഗും സാധാരണയായി കുറഞ്ഞ ഇടവേളകളിൽ, അതായത് വോളിയം അനുസരിച്ച് ഓരോ അഞ്ച് മുതൽ പതിനഞ്ച് മിനിറ്റിലും പ്രവർത്തിക്കേണ്ടതുണ്ട്. IMAP വഴിയുള്ള ബൗൺസ് ശേഖരണം കൃത്യമായ ഇടവേളകളിൽ നടക്കുന്നുണ്ടെന്ന് ഉറപ്പാക്കണം, എങ്കിൽ മാത്രമേ അനിയന്ത്രിതമായ സ്പാം പരാതികൾ കാരണം നിങ്ങളുടെ സെൻഡർ റെപ്യൂട്ടേഷൻ (sender reputation) മോശമാകാതിരിക്കൂ. മെമ്മറി എററുകൾ ഇല്ലാതെ ഇവ പൂർത്തിയാകുന്നുണ്ടെന്ന് ഉറപ്പാക്കാൻ നിങ്ങളുടെ syslog അല്ലെങ്കിൽ cron ഔട്ട്പുട്ട് ശ്രദ്ധിക്കുക.
പ്ലാറ്റ്ഫോം ഉപയോഗിക്കുമ്പോൾ
ഇൻസ്റ്റാളർ പൂർത്തിയായി cron കൃത്യമായി പ്രവർത്തിച്ചു തുടങ്ങിയാൽ, ഡാഷ്ബോർഡിലേക്ക് ലോഗിൻ ചെയ്യുക. കോൺടാക്റ്റുകൾ (contacts), സെഗ്മെന്റുകൾ (segments), ക്യാമ്പയിനുകൾ (campaigns) എന്നീ മൂന്ന് പ്രധാന ഘടകങ്ങളെ കേന്ദ്രീകരിച്ചാണ് ഇതിന്റെ ഇന്റർഫേസ് രൂപകൽപ്പന ചെയ്തിരിക്കുന്നത്.
ഇമെയിൽ വർക്ക്ഫ്ലോകൾ (email workflows) രൂപകൽപ്പന ചെയ്യാൻ ഡ്രാഗ്-ആൻഡ്-ഡ്രോപ്പ് ക്യാമ്പയിൻ ബിൽഡർ ഉപയോഗിക്കുക. ഒരു പുതിയ സബ്സ്ക്രൈബർ ഫ്ലോയിലേക്ക് വരുന്നു, ഒരു ദിവസം കാത്തിരിക്കുന്നു, ഒരു വെൽക്കം മെസേജ് ലഭിക്കുന്നു, തുടർന്ന് അവർ ഒരു ലിങ്കിൽ ക്ലിക്ക് ചെയ്തോ ഇല്ലയോ എന്നതിനെ അടിസ്ഥാനമാക്കി പ്രക്രിയ മാറുന്നു. ഇതിനിടയിൽ, പ്രൈസിംഗ് പേജുകൾ സന്ദർശിക്കുമ്പോഴോ ഉൽപ്പന്ന അറിയിപ്പുകൾ തുറക്കുമ്പോഴോ പോയിന്റ്സ് സിസ്റ്റം (Points system) ലീഡുകൾക്ക് സ്കോറുകൾ നൽകുന്നു. ഒരു സെയിൽസ് കോളിന് അർഹമായ 'ഹോട്ട് ലീഡ്' (hot lead) എന്ന് തിരിച്ചറിയാനുള്ള പരിധികൾ (thresholds) നിങ്ങൾക്ക് തീരുമാനിക്കാം.
നിങ്ങൾ നിർവചിക്കുന്ന നിയമങ്ങൾ അനുസരിച്ച് സെഗ്മെന്റുകൾ കോൺടാക്റ്റുകളെ സ്വയമേവ ഗ്രൂപ്പ് ചെയ്യുന്നു. കഴിഞ്ഞ മുപ്പത് ദിവസത്തിനുള്ളിൽ ഒരു ക്യാമ്പയിൻ തുറന്ന എല്ലാവരെയും നിങ്ങൾക്ക് ഒരു സെഗ്മെന്റാക്കാം, അല്ലെങ്കിൽ ഒരു പ്രത്യേക രാജ്യത്തുള്ള കോൺടാക്റ്റുകളെ വേർതിരിക്കാം. നിങ്ങളുടെ ലാൻഡിംഗ് പേജുകളിലുള്ള ഫോമുകൾ നേരിട്ട് ഈ സെഗ്മെന്റുകളിലേക്ക് വിവരങ്ങൾ നൽകുന്നു. ഈ ഭാഗങ്ങളെ തമ്മിൽ ബന്ധിപ്പിക്കുന്നതിലൂടെ, നിങ്ങളുടെ മുഴുവൻ ലിസ്റ്റിലേക്കും ഒരേ സന്ദേശം അയക്കുന്നതിന് പകരം, ഉപഭോക്താക്കളുടെ പെരുമാറ്റത്തിനനുസരിച്ച് പ്രതികരിക്കുന്ന ഒരു ഓട്ടോമേറ്റഡ് നർച്ചർ സീക്വൻസ് (automated nurture sequence) നിങ്ങൾക്ക് ലഭിക്കുന്നു.
വിന്യാസത്തിന് ശേഷമുള്ള യഥാർത്ഥ ജോലി
Ubuntu 24.04-ൽ Mautic ഇൻസ്റ്റാൾ ചെയ്യുന്നത് ഒരു തുടക്കം മാത്രമാണ്. ഓരോ അപ്ഡേറ്റിനും മുമ്പ് നിങ്ങളുടെ ഡാറ്റാബേസും /var/www/html/mautic ഡയറക്ടറിയും ബാക്കപ്പ് ചെയ്യുക. പുതിയ പ്ലഗിനുകൾ ഇൻസ്റ്റാൾ ചെയ്യുമ്പോൾ PHP എറർ ലോഗുകൾ ശ്രദ്ധിക്കുക. നിങ്ങളുടെ കോൺടാക്റ്റ് ലിസ്റ്റ് വർദ്ധിപ്പിച്ച ശേഷം cron ഔട്ട്പുട്ട് പരിശോധിക്കുക, കാരണം ആയിരം കോൺടാക്റ്റുകളിൽ സെക്കൻഡുകൾക്കുള്ളിൽ പൂർത്തിയാകുന്ന ഒരു ജോലി അമ്പതിനായിരം കോൺടാക്റ്റുകളിൽ ടൈം ഔട്ട് (time out) ആയേക്കാം.
ഒരു മാനേജ്ഡ് SaaS-ന്റെ സൗകര്യത്തിന് പകരം നിങ്ങളുടെ മാർക്കറ്റിംഗ് ഡാറ്റയുടെ മേൽ പൂർണ്ണ നിയന്ത്രണം നേടാനാണ് സെൽഫ്-ഹോസ്റ്റിംഗ് (Self-hosting) സഹായിക്കുന്നത്. ഇതിൽ വെണ്ടർ ലോക്ക്-ഇൻ (vendor lock-in) ഇല്ല, കോൺടാക്റ്റ് അടിസ്ഥാനത്തിലുള്ള അപ്രതീക്ഷിത വിലക്കയറ്റങ്ങൾ ഇല്ല, കൂടാതെ നിങ്ങളുടെ അനലിറ്റിക്സിനെ മൂന്നാം കക്ഷി നിയന്ത്രിക്കുന്ന അവസ്ഥയുമില്ല. സെർവറും ഡാറ്റാബേസും നിങ്ങളുടെ ഓഡിയൻസുമായുള്ള ബന്ധവും നിങ്ങളുടെ നിയന്ത്രണത്തിലായിരിക്കും. ഒരു ലിനക്സ് ബോക്സും (Linux box) കുറച്ച് cron എക്സ്പ്രഷനുകളും കൈകാര്യം ചെയ്യാൻ തയ്യാറുള്ള ടീമുകളെ സംബന്ധിച്ചിടത്തോളം, ഈ മാറ്റം തീർച്ചയായും ലാഭകരമാണ്.
