How To Install Mautic 3 Email Marketing System [Updated Step by Step Guide)

Mautic Installation

What is Mautic?

Mautic is an open-source, marketing automation system and mostly used as a self-hosted email marketing solution.

What do we mean by a self-hosted email marketing solution?

As I explained in my Email Marketing Definitive Technical Guide,

 any Email marketing system consists of two parts:

  • The sender: (SMTP service) this is the technical part. It allows you to send emails over the internet.
  • The Management Application, where you can configure and manage your Email Lists, Marketing Campaigns, monitor and analyze results, manage your sending servers, and so on.

So we connect both together to get an Email Marketing System.

email marketing system

In our case, The Management Application will be Mautic.

In this Guide, I will show you How to setup and configure Mautic step by step.

You will also find a Video covering all the steps covered in the guide to help you see things in action.

Mautic Installation

What is required to Setup Mautic?

What you need is simply is:

  • A VPS Server to install Mautic on.
  • Domain Name to use with our setup.

Get a Domain Name.

Getting a Domain is as simple as eating a piece of chocolate cake. you need to go to any Domain registrar company like Godaddy, Enom, Freenom, Namecheap…. and Buy a Domain Name, you can even get one for 1$ per year.

I do recommend to get a .com domain that reflects your business. and if you already have one, as I think so, you can just skip this, and continue to get a VPS Server.

Watch this 3 Minutes Video and see how to get and buy a domain name from Godaddy:

This video is part of my Top Rated Course On Udemy:
Build Your Own SMTP and Send Unlimited Emails

Get a VPS Server.

Now, Let’s get our VPS server to set up Mautic on.

What company should I use?

You can use whatever company you want to buy a VPS Server, in this guide I will be using Contabo services.

Feel free to use any VPS company you want, It's up to you!

You can also sign up on DigitalOcean through the coupon link below to get free 100$ to test everything free.

So after you signup on Digital Ocean or any other VPS company, just create a Server with the following specifications:

  • Ubuntu 16/18 x64 as your operating system.
  • You can start with 1 CPU/ 1 GB RAM (and you can resize later).

Point Domain to VPS.

Before we continue you need to point your domain or subdomain to your VPS IP address.

In my case, I will create a Subdomain “” and point it to my Contabo VPS IP address.

Done? Great! ✔️

OK so now we have a Domain and a VPS server, Let's Start the installation.

Connect to your VPS server using any SSH client like putty.

and Lets Install Apache, PHP, and MySQL which are the pre requests for hosting any PHP application like mautic.

Step 1: Install Apache2 Web Server on Ubuntu

Run the commands below to Install Apache Web Server on your VPS Server.

sudo apt update
sudo apt install apache2

Just wait a few seconds for the installation to finish, then run the following commands to test and enable the Apache service.

sudo systemctl restart apache2.service
sudo systemctl enable apache2.service

To test if Apache is working on your Server, open any web browser and browse to the VPS IP address (http://Your_IP_Address).

You should see the Apache default page like this:

Apache default page
Apache default page

Installed Apache? Great! ✔️

Step 2: Install MariaDB (MySQL) Database Server

Mautic is like any other PHP System that requires a Database to save data. So we will use the MariaDB Mysql Database system for this purpose.

To install MariaDB run the commands below (Choose between Ubuntu 16,18):

Run these on Ubuntu 16 LTS:

sudo apt-get install software-properties-common gnupg-curl
sudo apt-key adv --fetch-keys ''
sudo add-apt-repository 'deb [arch=amd64,arm64,i386,ppc64el] xenial main'
sudo apt update
sudo apt-get install mariadb-server

Run these on Ubuntu 18 LTS:

sudo apt-get install software-properties-common
sudo apt-key adv --fetch-keys ''
sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] bionic main'
sudo apt update
sudo apt-get install mariadb-server 

The commands below can be used to stop, start and enable MariaDB MySQL service to always start up when the server boots.

Run these on Ubuntu 16 LTS

sudo systemctl stop mysql.service
sudo systemctl start mysql.service
sudo systemctl enable mysql.service

Run these on Ubuntu 18 LTS

sudo systemctl stop mariadb.service
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service

After that, run the commands below to secure the MariaDB server by creating a root password and disallowing remote root access.

sudo mysql_secure_installation

When prompted, answer the questions below:

  • Socket password: N
  • Enter current password for root (enter for none): Just press the Enter
  • Set a root password? [Y/n]: Y
  • New password: Enter your new password (create a secure one)
  • Re-enter new password: Repeat your new password
  • Remove anonymous users? [Y/n]: Y
  • Disallow root login remotely? [Y/n]: Y
  • Remove test database and access to it? [Y/n]:  Y
  • Reload privilege tables now? [Y/n]:  Y

Restart MariaDB Mysql service

To test if MariaDB is installed, type the command below to logon to MariaDB server

sudo mysql -u root -p

Then type the password you created above to login… if successful, you should see MariaDB welcome message like this:

MariaDB Installed
MariaDB Installed Successfully

Installed DB? Great! ✔️

Step 3: Install PHP and Related Modules

Since Mautic is a PHP based script, we need to install PHP and some modules on our server. I will be installing PHP 7.4 in this guide, but feel free to use any version you want, just change “7.4” to “7.X” in the commands.

Run the commands below to add the third party repository to install PHP 7.4

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php

Then update:

sudo apt update

Next, run the commands below to install PHP 7.4 and related modules. (note: copy and paste as one command)

sudo apt install php7.4 libapache2-mod-php7.4 php7.4-common php7.4-gmp php7.4-curl php7.4-intl php7.4-mbstring php7.4-xmlrpc php7.4-mysql php7.4-bcmath php7.4-gd php7.4-xml php7.4-cli php7.4-zip php7.4-imap

Then run the following command:

sudo apt install php7.4-pcov

After installing PHP, Open WinSCP to edit the php.ini file.

WinSCP is a Free Remote Visual File manager that works over SSH, it makes things a lot easier from managing and editing files with putty.

Open WinSCP and connect to your server using your server IP/Name and root credentials. Then navigate this directory: “/etc/php/7.X/apache2/” where you can find the “php.ini” configuration file.

Right-click on “php.ini” and Click Edit.

Then make the changes on the following lines below in the file and save. 

file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 256M //You can increase this if you server can handle
upload_max_filesize = 100M
max_execution_time = 360
date.timezone = America/NewYork //Set your Time Zone here

After applying the changes above, save the file and Close. then Go to Putty again and restart apache service:

 sudo systemctl restart apache2.service 

Installed PHP? Great! ✔️

Step 4: Create Mautic Database

Now, we are done installing all the prerequisites and our server is ready for the installation, we need to create a Database for Mautic in MariaDB.

To login to the MariaDB MySql database server, run the commands below.

sudo mysql -u root -p

Then create a database called mautic (or any name you want)


Create a database user called mautic with a new password

CREATE USER 'mautic'@'localhost' IDENTIFIED BY 'Enter_Your_Password_Here';

Then grant the user full access to the database.

GRANT ALL ON mautic.* TO 'mautic'@'localhost' IDENTIFIED BY 'Enter_your_password_here' WITH GRANT OPTION;

Finally, save your changes and exit.


Created a Mautic Database? Great! ✔️

Step 5: Download and Install Mautic.

To get Mautic latest release you may want to use Github repository… Install Composer, Curl, and other dependencies by running the following commands:

#First Command:
sudo apt install curl git

#Second Command:
curl -sS | sudo php -- --install-dir=/usr/local/bin --filename=composer --version=2.3.5

When the operation finishes, change the directory to “/var/www/html” by running the following command:

cd /var/www/html

Then Download Mautic package:

sudo git clone

Now Install Mautic by running the following commands:

cd /var/www/html/mautic

sudo composer install

After the installation finishes, we need to set some file permissions by running the following commands:

sudo chown -R www-data:www-data /var/www/html/mautic/

sudo chmod -R 755 /var/www/html/mautic/

Installed Mautic? Great! ✔️

Step 6: Configure Apache2 Web Server

Well Done, Now Mautic is installed, we just need to configure apache so we can access Mautic using our domain name. To do so, open WinSCP again and navigate to this directory: /etc/apache2/sites-available/

Now, create a new empty file and name it “” (Change to your domain)

Mautic Conf
Create Mautic Conf

Open mautic.conf Then copy and paste the content below into the file and save.

<VirtualHost *:80>
     DocumentRoot /var/www/html/mautic

     <Directory /var/www/html/mautic/>
        Options +FollowSymlinks
        AllowOverride All
        Require all granted

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined


Replace with your own domain, in my case its “”

Enable mautic configuration in apache and restart the service.

Now simply, run the following commands to finish the setup:

sudo a2ensite

sudo a2enmod rewrite

sudo systemctl restart apache2.service 

GREAT! You are almost done????

Open your web browser now and navigate to your server name like this:

You must see the setup completion wizard below:

mautic setup

Continue the setup by entering the database info and your admin login information. watch at the video at the end of this guide if you have any problems.

Done? Great! ✔️

Step 7: Configure Cron Jobs

Congratulations! Now we finished the Installation process and Mautic is up and running. we only need to set up the Cron jobs.

What are Cron Jobs?

Simply Cron Jobs are scheduled tasks that run automatically upon a schedule.

For example, if you created an email campaign that runs automatically every week. you need a task to run in the background automatically to trigger this campaign, this is the role of Cron jobs, so lets set it up.

Mautic has several Cron Jobs, some are required and some are optional, check a list of all Mautic Cron jobs here.

To make things easy for you, you will just need to copy the jobs below and paste them on your server.

#Segments Every 2 Minutes
*/2 * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:segments:update
*/3 * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:import

#Campaigns (Every 1 Minute)
* * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:campaigns:update
* * * * * root /usr/bin/php /var/www/html/mautic/bin/console
* * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:messages:send

#Process Email Queue Every 5 Minutes
*/5 * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:emails:send
#Fetch and Process Monitored Email Every 10 Minutes
*/10 * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:email:fetch

#Process Email Queue Every 5 Minutes
*/5 * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:emails:send

#Fetch and Process Monitored Email Every 10 Minutes
*/10 * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:email:fetch

Where to paste them?

Open WinSCP, and in the “/etc” directory you will find the “crontab” file. Edit it, and paste the jobs inside, then save.

crontab winscp
Open the crontab file
Paste the cronjobs in the crontab file

Check If Cronjobs Are Correctly Configured.

After you paste and save the cronjobs (each on one line and add a new empty line after the last one), It's a good practice to test if the file syntax is correct.

You can do this my simply running the following command in putty:

crontab /etc/crontab

If the output was empty (nothing) then everything is ok!

That's it! Enjoy Mautic.

Mautic Installation Video:

Optional: Secure with a Free SSL.

SSL certificates are used within web servers to encrypt the traffic between the server and client, providing extra security for users accessing your application. Let’s Encrypt provides an easy way to obtain and install trusted certificates for free.

Connect to your Server using Putty SSH client. and Let's Start!

Step 1 — Install the Let’s Encrypt Client

Let’s Encrypt certificates are fetched via client software running on your server. The official client is called Certbot.

First, add the repository to install Certbot:

 sudo add-apt-repository ppa:certbot/certbot 

You’ll need to press ENTER to accept.

Then, Update the package list to pick up the new repository’s package information:

 sudo apt-get update 

Install Certbot’s Apache package:

 sudo apt install python-certbot-apache 

Certbot is now ready to be used.

Step 2 — Set Up the SSL Certificate

Generating the SSL certificate for Apache using Certbot is quite straightforward. The client will automatically obtain and install a new SSL certificate that is valid for the domains provided as parameters.

Simply run the following command: (change the domain)

 sudo certbot --apache -d

You will be asked to provide an email address for lost key recovery and notices, and you will be able to choose between enabling both http and https access or forcing all requests to redirect to https. It is usually safest to require https, unless you have a specific need for unencrypted http traffic.

That's it! ✔️

Test our website now, for me, I will open “”

mautic ssl

Good Luck!

Related Articles


Your email address will not be published.

  1. Hello Hassan,

    I have done everything, until the last step, when i went to it is still showing Apache page. What has gone wrong? I didnt receive any error message during the whole installation process.

    Thank you

      1. Your reply does not give a solution to the above problem. I had exactly same problem.

          1. Yes i did that but i am getting error “The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.”

      1. Great work sir. You really opened my eyes on email marketing and the technical aspects.

        1. HI friend, did you open a question on udemy? why you are commenting here, just open in Udemy, I follow up everyday

          1. You are not active on Udemy. Cronjob does not work it is been almost a month I am seeking help. It is very frustrating.

          2. Friend, I have tested your mautic server and it is working. There is nothing wrong with the cronjobs. Please follow up on Udemy with me.

  2. Hello Hassan.
    In the Cron Jobs section, your list of command has 2 times the same commands:
    #Process Email Queue Every 5 Minutes
    */5 * * * * root /usr/bin/php /var/www/html/mautic/app/console mautic:emails:send

    #Fetch and Process Monitored Email Every 10 Minutes
    */10 * * * * root /usr/bin/php /var/www/html/mautic/app/console mautic:email:fetch

    Is this ok?

      1. The example on your webpage has the commands duplicated, and there are some hard returns that should be corrected. For those following along, copy/paste into a text editor, fix the returns so everything is on one line. All lines should begin with * or #. And remove the duplicated commands at the end.

  3. Sir,
    I need help
    I set up mautic with amazon ses. During checking/trying all the features in mautic, after installation. In the configuration option, there is a site URL column
    In this column, I previously put the main Url (https://website URL) but just for checking I change the URL (https://website url/link) after changing to this URL my mautic does not work properly, I tried to change it back to the main URL but is unable to change (please wait option is showing on the screen every time)
    please suggest me how to solve this problem.

  4. I spend 2 days trying to install this… but sadly same problem always tired every version of php 7.1-7.4 but every time I i go to Mautic dr and try to “install composer” I get this Error please help
    reply her

    Do not run Composer as root/super user! See for details
    Loading composer repositories with package information
    Installing dependencies (including require-dev) from lock file
    Your requirements could not be resolved to an installable set of packages.

    Problem 1
    – Installation request for pcov/clobber v2.0.3 -> satisfiable by pcov/clobber[v2.0.3].
    – pcov/clobber v2.0.3 requires ext-pcov ^1.0 -> the requested PHP extension pcov is missing from your system.

    To enable extensions, verify that they are enabled in your .ini files:
    – /etc/php/7.3/cli/php.ini
    – /etc/php/7.3/cli/conf.d/10-mysqlnd.ini
    – /etc/php/7.3/cli/conf.d/10-opcache.ini
    – /etc/php/7.3/cli/conf.d/10-pdo.ini
    – /etc/php/7.3/cli/conf.d/15-xml.ini
    – /etc/php/7.3/cli/conf.d/20-bcmath.ini
    – /etc/php/7.3/cli/conf.d/20-calendar.ini
    – /etc/php/7.3/cli/conf.d/20-ctype.ini
    – /etc/php/7.3/cli/conf.d/20-curl.ini
    – /etc/php/7.3/cli/conf.d/20-dom.ini
    – /etc/php/7.3/cli/conf.d/20-exif.ini
    – /etc/php/7.3/cli/conf.d/20-fileinfo.ini
    – /etc/php/7.3/cli/conf.d/20-ftp.ini
    – /etc/php/7.3/cli/conf.d/20-gd.ini
    – /etc/php/7.3/cli/conf.d/20-gettext.ini
    – /etc/php/7.3/cli/conf.d/20-gmp.ini
    – /etc/php/7.3/cli/conf.d/20-iconv.ini
    – /etc/php/7.3/cli/conf.d/20-imap.ini
    – /etc/php/7.3/cli/conf.d/20-intl.ini
    – /etc/php/7.3/cli/conf.d/20-json.ini
    – /etc/php/7.3/cli/conf.d/20-mbstring.ini
    – /etc/php/7.3/cli/conf.d/20-mysqli.ini
    – /etc/php/7.3/cli/conf.d/20-pdo_mysql.ini
    – /etc/php/7.3/cli/conf.d/20-phar.ini
    – /etc/php/7.3/cli/conf.d/20-posix.ini
    – /etc/php/7.3/cli/conf.d/20-readline.ini
    – /etc/php/7.3/cli/conf.d/20-shmop.ini
    – /etc/php/7.3/cli/conf.d/20-simplexml.ini
    – /etc/php/7.3/cli/conf.d/20-sockets.ini
    – /etc/php/7.3/cli/conf.d/20-sysvmsg.ini
    – /etc/php/7.3/cli/conf.d/20-sysvsem.ini
    – /etc/php/7.3/cli/conf.d/20-sysvshm.ini
    – /etc/php/7.3/cli/conf.d/20-tokenizer.ini
    – /etc/php/7.3/cli/conf.d/20-wddx.ini
    – /etc/php/7.3/cli/conf.d/20-xmlreader.ini
    – /etc/php/7.3/cli/conf.d/20-xmlrpc.ini
    – /etc/php/7.3/cli/conf.d/20-xmlwriter.ini
    – /etc/php/7.3/cli/conf.d/20-xsl.ini
    – /etc/php/7.3/cli/conf.d/20-zip.ini
    You can also run `php –ini` inside terminal to see which files are used by PHP in CLI mode

    1. I had the same issue.

      Install pcov :
      sudo apt install php-pcov

      Thanks Hassan for your udemy courses

  5. issue wirh mautic ssl configuration?

    root@vmi412167:~# sudo certbot –apache -d
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    The requested apache plugin does not appear to be installed

          1. I am having the same issue. After the installer setup, it says Not found, the requested URL was not found on this server. Apache/2.4.29 (Ubuntu) Server at Port 80

  6. hello hasan this is inside my crontab file in etc folder the corn works fine if I run it manually in Putty but it is not working inside the crontab file

    # /etc/crontab: system-wide crontab
    # Unlike any other crontab you don’t have to run the `crontab’
    # command to install the new version when you edit this file
    # and files in /etc/cron.d. These files also have username fields,
    # that none of the other crontabs do.


    # m h dom mon dow user command
    17 * * * * root cd / && run-parts –report /etc/cron.hourly
    25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts –report /etc/cron.daily )
    47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts –report /etc/cron.weekly )
    52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts –report /etc/cron.monthly )

    #Segments Every 1 Minutes
    * * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:segments:update
    * * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:import

    #Campaigns (Every 1 Minute)
    * * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:campaigns:update
    * * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:campaigns:trigger
    * * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:messages:send
    * * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:broadcasts:send
    * * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:emails:send

    #Fetch and Process Monitored Email Every 10 Minutes
    */10 * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:email:fetch
    */10 * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:webhooks:process

    #0 0 * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:iplookup:download
    11 3 * * * sudo -u daemon geoipupdate -f /etc/GeoIP.conf -d /var/www/html/mautic/app/cache/ip_data

  7. Hello Hassan. The cron jobs did not work. Where does it say the system is going to go for the cron jobs to that path

  8. hello i found the solition to that. Its just to find the right place for crons

  9. I followed the guide exactly (on July 20) and I have the same issue. What changes did you make in the guide? I am trying to troubleshoot this now.

  10. I have problem with”CronJob” – exactly if I want to Sending scheduled emails in mautic. I set up date, time – it only change to active but don´t sent, only manually

  11. So , how I can do update to Mautic 3 and what I have to do to solve problem with cronjob, with schedule email. Can I find workshop how do it?


  12. Should I install Mautic on the same VPS I installed Postal? Or I should install in different VPS?

  13. Problem with cron job (schedule emails) – continue
    -Mautic version 3,02
    -PHP Version
    (I reinstall all VPS server)
    – cron job is replace – app/console vs. bin/console … (copy from your blog – new )

    but still the same problem – segments activate in just time but don´t send email.
    how fix it?

    1. Sorry, fixed… I had installed mariadb 10.1.
      Installing mariadb 10.5 fixed my problem

    1. I am having same issue, not able to log in.

      I am using Used Ubuntu 18.04;

      After typing subdomain or domain into search bar I get (Ubuntu LogoApache2 Ubuntu Default Page It Works!) I have to type subdomain/mautic or domain/mautic and then I get (Mautic Installation – Environment Check Ready to Install! Great! Your environment is ready for Mautic.

      When I click next and go to the Mautic Installation – Database Setup Page and put in my Database Name; Database Username; Database Password. It will not let me log in. I get 500 Internal Server Error. (yes I did double check to make sure I entered it correctly).

  14. Hey i have a problem, i have installed mautic exactly from the guide with the ubuntu 18 version, and a VPS from digital ocean.
    I made an admin character in the mautic newest version, and finished it.
    The end panel looked alittle different with configurations towards probably my other smtp server i assume.

    But my issue is that when i login in from the admin panel i get redirected to the admin panel, but what shows it this, on a white background:
    Not Found
    The requested URL was not found on this server.

    Apache/2.4.29 (Ubuntu) Server at Port 80

    The URL i was on is, since it didnt work for me with just, when i go to that url, it only brings up that apache works, but entering the first url lets me go to the admin login and dashboard, with the failed text.

    What could i do to fix this, and enter my dashboard with the actual data on it?

      1. Hey great that worked, the only issue i am facing now is that my SSL wont show, i have installed the certificated as it should.
        But it still goes into the http server and not https.
        What i read is that i should force route to https, but i cant seem to find a guide which works.

        Ive tried to redirect through the port from 80 to 443 in the virtual host, but that does not seem to work.
        do you have any ideas as to how i can do this.
        Also i assume this isnt a Nginx project right?
        Since there isnt any folders or files on that. Let me know what you think.

  15. Hi Hassan, great job for the explanation. Please I need a service to help me install the mautic. I have been using sendy with amazon ses before now. Is it possible to use both mautic and sendy concurrently?

    I need you or your agency to do the installation for me.

    Kindly response.

  16. I am trying to integrate with o365 and am getting an error on email configuration part in mautic, under email configuration , I selected as other SMTP server i have given “” portnumber as 587 ; smtp encryption type as none and SMTp authentication mode “plain Text”. Then i give o365 user username and password . Test connection works( Result came as Success!!) but send test email: its not working!!. Even I tried to send test email from contact ( mautics contact console ) right click send test email. It is not working. Can you please advise me what i suppose to do

  17. I installed and logged into Mautice. Whe I tried to install ssl certificate, I got this error: Mautic does not support PHP version at this time. To use Mautic,
    you will need to downgrade”

    I read somewhere that this can be solved from mautic/app/middlewares/VersionCheckMiddleware.php

    Is it possible? will this installation work?

  18. I do everything until i finish step 6 and i go to web browser and navigate to my server name and noyhing show
    before that at step 5 when you say (Now Install Mautic by running the following commands:)
    i paste ( sudo composer install )
    and they say comand not found
    so from where the problems
    plz help me fix that because my brain will explose

    1. and if i navigate with my server ip not server name
      they show me thats Apache2 Ubuntu Default Page

        1. Hello Friend,
          If you are following up with us on our courses in or, please open your questions there so our premium support team can follow up with you.
          Else, please open your questions on one of the below platforms of your choice.

          Email Marketing FB Group:

  19. I have followed your guide. When I visit, I get the default apache page but on, I get the mautic installation page.

    1. Hello Friend,
      If you are following up with us on our courses in or, please open your questions there so our premium support team can follow up with you.
      Else, please open your questions on one of the below platforms of your choice.
      Email Marketing FB Group:

    1. Hello Friend,
      If you are following up with us on our courses in or, please open your questions there so our premium support team can follow up with you.
      Else, please open your questions on one of the below platforms of your choice.
      Email Marketing FB Group:

  20. HIi Hasan i paste this: sudo apt install php7.4 libapache2-mod-php7.4 php7.4-common php7.4-gmp php7.4-curl php7.4-intl php7.4-mbstring php7.4-xmlrpc php7.4-mysql php7.4-bcmath php7.4-gd php7.4-xml php7.4-cli php7.4-zip php7.4-imap

    then ask me “do you want to continue ?” I click Y
    but the response is “ABORT”

      1. hello, could you help me to figure out the issue , I finished the step 6, but when I try to enter server name in web browser, it still show the page of apache

          1. Friend, please post on the forums as we might ask for extra info that you cannot provide over comments.

  21. Hi, Hassan AboulHassan

    My self Muhammad waleed

    installing mautic on Ubuntu is vary technical for me as a beginner. so, can i install mautic on Debian ?And this will work same as ubuntu?

    please reply my comment as soon as possible Thanks.

  22. I got everything working up to the Mautic Installation – Database Setup page.
    I filled in the blanks (leaving it as localhost) and hit Next.
    Then, immediately, it gave me this screen:

    Uh oh! I think I broke it. If I do it again, please report me to the system administrator!
    500 Internal Server Error

    1. Right after I hit the Next button and before this Uh Oh I broke message,
      it was showing this message: “Verifying the details, creating the database. This may take a few seconds…”
      It looks like it had trouble creating a database. But I have already created my database.

      1. Hi friend,
        For technical questions, please open your topic on and we will be more than happy to reply to you.

  23. hello sir hassan

    firstable thank you for all your stuff, you rock bro

    secondly, i followed up all the step and all is good, but i have juste one prob and i can’t solve it alone, can you help me plz

    when i try a sending test (from my pro email via mautic to my own email all is good, but when i send a broadcoast email or automatic email to my own email, the email don’t go ????!!!

    some pic to explain that

    thanks a lot

      1. thank you abdallah taleb 🙂

        i did it since yesterday but still no response 🙁

        i’ll wait 🙂

  24. Hi
    I need help with setting up multiple domains on mautic so that when I send emails they can come from different domains, as I have three companies. And I would love my emails to be sent from a relevant company email.
    Is this possible?

  25. Hi Hassan & Abdallah,

    Have you figured out how to monitor and mark BOUNCES with Mautic and Postal? I have read your comments in Github on the topic and wondered if you have made any progress? I have tried all that I can think off with no success.

    Yet how to collect BOUNCES in of Mautic & Postal?

    Thanks ????

  26. Hello Sir, What are the other open source mailing applications like mautic?
    Mautic has lots of bugs and I have problem in sending segment emails, only test emails and individual emails are working and nothing else is working. Its showing sent but the emails are not being sent.
    Please suggest alternatives for mautic for cold emails

  27. Use these cronjobs

    # Every Minute Required

    * * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:segments:update > /var/www/html/mautic/cron_logs/segments_update.log 2>&1

    * * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:campaigns:update > /var/www/html/mautic/cron_logs/campaigns_update.log 2>&1

    * * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:campaigns:trigger > /var/www/html/mautic/cron_logs/campaigns_trigger.log 2>&1

    # Every Minute Optional

    * * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:emails:send > /var/www/html/mautic/cron_logs/emails_send.log 2>&1

    * * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:messages:send > /var/www/html/mautic/cron_logs/messages_send.log 2>&1

    * * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:broadcasts:send > /var/www/html/mautic/cron_logs/broadcasts_send.log 2>&1

    # Every 2 Minutes

    */2 * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:import > /var/www/html/mautic/cron_logs/import.log 2>&1

    # Every 5 Minutes

    */5 * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:email:fetch > /var/www/html/mautic/cron_logs/email_fetch.log 2>&1

    */5 * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:webhooks:process > /var/www/html/mautic/cron_logs/webhooks_process.log 2>&1

    # Every 30 Minutes

    */30 * * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:social:monitoring > /var/www/html/mautic/cron_logs/social_monitoring.log 2>&1

    # Every Day

    00 00 * * * root /usr/bin/php /var/www/html/mautic/bin/console mautic:iplookup:download > /var/www/html/mautic/cron_logs/iplookup.log 2>&1

    # Every Year

    00 00 1 1 * root /usr/bin/php /var/www/html/mautic/bin/console mautic:maintenance:cleanup –days-old=365 –dry-run > /var/www/html/mautic/cron_logs/maintenance_cleanup.log 2>&1

  28. [2021-01-28 07:44:42] mautic.WARNING: PHP Warning – Cannot use a scalar value as an array – in file /var/www/html/mautic/app/bundles/InstallBundle/Install/InstallService.php – at line 337
    [2021-01-28 07:44:42] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\ConnectionException: “An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user ‘mautic’@’localhost’

  29. Hi hassan.
    when I create contabo account should I buy cpanel too?
    how can I create a Subdomain and point it to my Contabo VPS IP address? like you did with “”

  30. Hi, I am getting the following error on this command:
    /var/www/html/mautic/bin/console mautic:emails:send

    In Container.php line 275:

    The “swiftmailer.transport.real” service or alias has been removed or inlined whe
    n the container was compiled. You should either make it public, or stop using the
    container directly and use dependency injection instead.

    Any suggestions?

  31. My php version is 8.0 and Mautic doesn’t accept it. Can you give me some advice, please? I don’t know how to decrease (reverse to an older version) the PHP. I use Contabo service. Thank you for your reply!

  32. I work with this guide step by step but when I try to access I redirected to, and get a File Not Found 404 error.

    However, when I manually input ‘index.php’ into the url,, everything works perfectly.
    What could be causing this?

  33. Hello Hasan,

    Firstly, many appreciations for your handy posts.

    Secondly, the MariaDB repositories should be updated to install 10.7. Currently, your tutorial installs version 10.5, and the new version of mautic seems to be incompatible with it.

    Also, Do you have any experience with emails not being sent from mautic without even a single error in mautic log files? Mautic connects to the SMTP server successfully (according to the Test Connection available in the configuration section) also returns “Successful” on sending the test email! However, no email is being received! Consequently, campaigns don’t send emails. Crontasks are configured correctly, and the mail server has a score of 10 from Mail-tester

  34. If you guys are facing issues while installing after mautic v4 then you have to install the latest version of composer in the 5th Step by running the following command
    #Second Command: curl -sS | sudo php — –install-dir=/usr/local/bin –filename=composer –version=2.3.5

  35. hmm, interesting and rather easy way to do something which can otherwise be thought of difficult.
    it is very appreciated.

  36. I have completed all of the above steps but I am getting a http error 500 when trying to go to mautic.”mysite”.com/mautic or mautic.”mysite”.com. Please advise

  37. not working with me

    This is the error message

    Do not run Composer as root/super user! See for details
    Loading composer repositories with package information
    Installing dependencies (including require-dev) from lock file
    Your requirements could not be resolved to an installable set of packages.

  38. I couldn’t install mautic, when I got to that part I started getting an error message, I wish I can attach a screenshot here

Get 85% OFF on all our selected products
Get a Shocking Discount!
Check it out
Get a Shocking Discount!
Get 85% OFF on all our selected products
Check it out