ઓપન-સોર્સ માર્કેટિંગ ઓટોમેશનનો અર્થ એ નથી કે તમારે તમારો ડેટા કોઈ SaaS વેન્ડરને આપી દેવો પડે. Mautic ઈમેલ કેમ્પેઈન, કોન્ટેક્ટ ટ્રેકિંગ અને લીડ નર્ચરિંગને તમારા પોતાના સર્વર પર રાખે છે. તેને Ubuntu 24.04 પર ચલાવવામાં HubSpot માં સાઇન-ઇન કરવા કરતાં વધુ મહેનત લાગે છે, પરંતુ તેનું વળતર તમારા સ્ટેક, તમારા ખર્ચ અને તમારા ગ્રાહક ડેટા પર સંપૂર્ણ નિયંત્રણ છે. તમે નક્કી કરો છો કે ક્યારે અપડેટ કરવું, કેવી રીતે સ્કેલ કરવું અને તમારી માહિતી ક્યાં રહેવી જોઈએ.

શરૂ કરતા પહેલા, તમારા સર્વર પર એક ડોમેન પોઈન્ટ કરો અને ખાતરી કરો કે તમારા Ubuntu 24.04 ઇન્સ્ટન્સમાં ઓછામાં ઓછી 2 GB RAM હોય. Mautic હળવું (lightweight) નથી; જ્યારે તે મોટા સેગમેન્ટ્સ ફરીથી બનાવે છે અથવા કેમ્પેઈન લોજિક પ્રોસેસ કરે છે ત્યારે PHP મેમરીનો ઉપયોગ કરશે. જો તમે હજારો કોન્ટેક્ટ્સને મોકલવાનું આયોજન કરી રહ્યા હોવ, તો 4 GB અનુભવને ઘણો વધુ સરળ બનાવશે.

LEMP ફાઉન્ડેશન બનાવો

Mautic ને LEMP સ્ટેકની જરૂર છે: Nginx, MySQL, અને PHP. Ubuntu 24.04 પર, ડિફોલ્ટ PHP વર્ઝન 8.3 છે, જે વર્તમાન Mautic રિલીઝ સાથે સારી રીતે કામ કરે છે. તમારા પેકેજ લિસ્ટને અપડેટ કરીને શરૂઆત કરો, પછી Nginx અને MySQL Server ઇન્સ્ટોલ કરો. તે પછી, PHP-FPM અને Mautic ને જરૂરી ચોક્કસ એક્સ્ટેન્શન ઇન્સ્ટોલ કરો:

  • php-fpm
  • php-mysql
  • php-imap
  • php-curl
  • php-gd
  • php-xml
  • php-mbstring
  • php-zip
  • php-intl
  • php-bcmath

દરેક એક્સ્ટેન્શનનો એક વાસ્તવિક હેતુ છે. IMAP એક્સ્ટેન્શન બાઉન્સ મેસેજ અને અનસબ્સ્ક્રાઇબ રિપ્લાય વાંચે છે. GD થંબનેલ્સ માટે ઈમેજ પ્રોસેસિંગ સંભાળે છે. Mbstring અને Intl વિવિધ ભાષાઓમાં કેરેક્ટર સેટ અને અનુવાદનું સંચાલન કરે છે. BCMath તમને લીડ સ્કોરિંગ અને કરન્સી ગણતરી માટે સચોટ ગણિત આપે છે. તેમાંથી કોઈપણ છોડશો નહીં, નહીંતર ઇન્સ્ટોલર અધવચ્ચે અટકી જશે.

જો Apache પહેલેથી જ ઇન્સ્ટોલ કરેલું હોય, તો તેને દૂર કરો. બંને વેબ સર્વર પોર્ટ 80 અને 443 નો ઉપયોગ કરવા માંગે છે. તેમને સાથે ચલાવવાથી સાયલન્ટ ફેલ્યોર (silent failures) થાય છે જે ડિબગ કરવામાં મુશ્કેલ હોય છે. એક ક્લીન apt remove apache2 અને ત્યારબાદ apt autoremove કરવાથી આ સમસ્યાથી સંપૂર્ણપણે બચી શકાય છે.

PHP અને ડેટાબેઝને ટ્યુન કરો

Mautic ના ઇન્સ્ટોલર અને બેકગ્રાઉન્ડ જોબ્સ મેમરીનો વધુ ઉપયોગ કરે છે. તમારી PHP-FPM કન્ફિગરેશન ફાઇલ ખોલો, જે /etc/php/8.3/fpm/php.ini પર આવેલી છે, અને મેમરી લિમિટ વધારીને 512 MB કરો. અપલોડ સાઈઝ 50 MB સેટ કરો જેથી તમે કોન્ટેક્ટ લિસ્ટ અને એસેટ બંડલ્સને કોઈપણ અવરોધ વગર ઇમ્પોર્ટ કરી શકો. સેવ કર્યા પછી, ફેરફારો લાગુ કરવા માટે PHP-FPM ને રિસ્ટાર્ટ કરો. આ સાથે જ, post_max_size ને તમારી અપલોડ લિમિટ સાથે મેચ કરવા માટે વધારો; અન્યથા, upload_max_filesize સાચું દેખાતું હોવા છતાં PHP મોટા મલ્ટીપાર્ટ ફોર્મ સબમિશનને રિજેક્ટ કરશે.

હવે, એક સમર્પિત (dedicated) MySQL ડેટાબેઝ અને યુઝર બનાવો. ડેટાબેઝનું નામ તમે ગમે તે રાખી શકો છો, પરંતુ યુઝરનેમ અને પાસવર્ડને પાસવર્ડ મેનેજરમાં રાખો. Mautic દરેક કોન્ટેક્ટ એક્શન, કેમ્પેઈન નિર્ણય અને ઈમેલ ઓપન ઇવેન્ટ આ ટેબલ્સમાં સ્ટોર કરે છે, તેથી સર્વર પર અન્ય કંઈક જો જોખમમાં હોય તો, સિંગલ-પર્પઝ એકાઉન્ટને વ્યાપક વિશેષાધનો (privileges) આપવાથી જોખમ મર્યાદિત રહે છે.

Mautic અને તેના ટૂલ્સ ઇન્સ્ટોલ કરો

લેટેસ્ટ સ્ટેબલ Mautic રિલીઝ ડાઉનલોડ કરો અને તેને /var/www/html/mautic માં એક્સટ્રેક્ટ કરો. ડિરેક્ટરીના ઓનરને www-data તરીકે સેટ કરો જેથી વેબ સર્વર કેશ ફાઇલ્સ, લોગ્સ અને લોકલ કન્ફિગરેશન અપડેટ્સ લખી શકે. Ubuntu પર, તેનો અર્થ છે chown -R www-data:www-data /var/www/html/mautic રન કરવું.

તમારે સર્વર પર Composer અને npm પણ ઇન્સ્ટોલ કરવાની જરૂર છે. Composer PHP ડિપેન્ડન્સીઝને રિઝોલ્વ કરે છે, અને જો તમે પ્રી-બિલ્ટ રિલીઝ આર્કાઇવમાંથી ડિપ્લોય કરો તો પણ, માર્કેટપ્લેસ પ્લગિન્સ ઉમેરવા અથવા મેન્યુઅલ અપડેટ્સ ચલાવવા માટે તમારે પછીથી Composer ની જરૂર પડશે. જો તમે ક્યારેય થીમ્સ કસ્ટમાઇઝ કરો અથવા સોર્સમાંથી ફ્રન્ટએન્ડ એસેટ્સ બનાવો તો npm મહત્વનું છે. અત્યારે જ બંને ટૂલ્સ તૈયાર રાખવાથી પ્રોજેક્ટ વિકસે ત્યારે તમારે દોડધામ કરવી નહીં પડે.

Nginx કન્ફિગર કરો અને તેને સુરક્ષિત કરો

તમારા Nginx વર્ચ્યુઅલ હોસ્ટનું રૂટ ડિરેક્ટરી /var/www/html/mautic તરફ હોવું જોઈએ અને index.php ને ડિફોલ્ટ ઇન્ડેક્સ તરીકે ગણવું જોઈએ. PHP વિનંતીઓને Unix સોકેટ પર રૂટ કરો જે PHP-FPM ખોલે છે, સામાન્ય રીતે /run/php/php8.3-fpm.sock પર. એક મજબૂત સર્વર બ્લોકમાં try_files ડાયરેક્ટિવ હોવું જોઈએ જે ફ્રન્ટ કંટ્રોલર પર જાય, વત્તા એક લોકેશન બ્લોક હોવો જોઈએ જે ડોટ (.) થી શરૂ થતી છુપાયેલી ફાઇલોને એક્સેસ કરવાની મનાઈ કરે છે. Mautic Apache માટે બનાવેલી .htaccess ફાઇલો સાથે આવે છે, પરંતુ Nginx તેને અવગણે છે, તેથી તમારા વર્ચ્યુઅલ હોસ્ટમાં સ્પષ્ટ 'deny' નિયમો તમારા લોગ્સ અને ટેમ્પ ડિરેક્ટરીઓને ખાનગી રાખશે.

વેબ-આધારિત ઇન્સ્ટોલર ચલાવતા પહેલા, TLS પ્રમાણપત્ર મેળવો. મફત Let’s Encrypt પ્રમાણપત્ર મેળવવા અને તમારા HTTP ટ્રાફિકને આપમેળે HTTPS માં રૂપાંતરિત કરવા માટે Nginx પ્લગિન સાથે Certbot નો ઉપયોગ કરો. Mautic લોગિન ક્રેડેન્શિયલ્સ અને કોન્ટેક્ટ ડેટા હેન્ડલ કરે છે; તેને પ્લેન ટેક્સ્ટમાં સર્વ કરવા માટે કોઈ બહાનું ચાલે નહીં.

Cron Jobs એ એન્જિન છે

This step is non-negotiable. Without scheduled tasks, Mautic is a dashboard that does nothing. The application queues campaign actions, email sends, and segment recalculations in the database, then relies on the command line to process them.

Set up cron jobs for the Mautic user to handle these background duties:

  • Updating segments
  • Running campaigns
  • Sending emails
  • Fetching bounces

In practice, that means invoking Mautic’s console commands at different intervals. Segment rebuilds can run hourly. Campaign triggers and email queue processing usually need a tighter window, every five to fifteen minutes depending on volume. Bounce fetching via IMAP should run regularly enough that your sender reputation does not suffer from unchecked spam complaints. Watch your syslog or the cron output to confirm they finish without memory errors.

Using the Platform

Once the installer completes and cron is humming, log into the dashboard. The interface centers on three building blocks: contacts, segments, and campaigns.

Use the drag-and-drop campaign builder to design email workflows. A new subscriber enters the flow, waits a day, receives a welcome message, and branches based on whether they clicked a link. Meanwhile, the Points system quietly scores leads when they visit pricing pages or open product announcements. You decide the thresholds that signal a hot lead worth a sales call.

Segments group contacts automatically by rules you define. You might segment everyone who opened a campaign in the last thirty days, or isolate contacts in a specific country. Forms living on your landing pages feed directly into these segments. Link the pieces together and you have an automated nurture sequence that reacts to behavior instead of blasting the same message to your entire list.

The Real Work After Deploy

Standing up Mautic on Ubuntu 24.04 is only the beginning. Back up your database and your /var/www/html/mautic directory before every update. Watch PHP error logs when you install new plugins. Test cron output after you scale your contact list upward, because a job that finishes in seconds at one thousand contacts may time out at fifty thousand.

Self-hosting trades the convenience of a managed SaaS for sovereignty over your marketing data. There is no vendor lock-in, no per-contact pricing surprises, and no third-party holding your analytics hostage. You own the server, the database, and the relationship with your audience. For teams willing to maintain a Linux box and a handful of cron expressions, that trade is usually worth it.