Mautic is an open source self-hosted marketing automation tool for everyone. You can use it to grow up your business or community, monitor your website, create landing pages, create a campaign for your business, manage contacts, and even send marketing emails.

In this tutorial, I will show you step-by-step how to install Mautic Marketing Automation Platform using Ubuntu 16.04. It's a web-based application, and we will be using the LEMP stack for our installation guide.

Prerequisites

Ubuntu 16.04

Root privileges

What we will do

Install Nginx

Install and configure MariaDB

install and configure PHP-FPM

Download Mautic

Configure Nginx virtual host for Mautic

Mautic Web-based installation

Testing

Step 1 - Install Nginx

Mautic is a web-based marketing automation tool, and we will be using the Nginx web server for our Mautic installation.

Login to your server machine, and then update and upgrade all packages.

sudo apt updatesudo apt upgrade

Now install Nginx using the apt command below.

sudo apt install nginx

After the installation is complete, start the nginx service and enable it to launch every time at system boot.

systemctl start nginxsystemctl enable nginx

The Nginx web server has been installed on to the Ubuntu 16.04 system - check it using the netstat command.

netstat -plntu

You should get the default HTTP port 80 on the list with 'LISTEN' state status.

Step 2 - Install and Configure MariaDB

Mautic offers support only for the MySQL database with min version 5.5.3. For this guide, we will be using the mariadb-server 10.0 based on MySQL 5.5.

Install the mariadb database using the following apt command.

sudo apt install mariadb-server mariadb-client -y

After the installation is complete, start the mariadb service and enable it to launch every time at system boot.

systemctl start mysqlsystemctl enable mysql

Now, we need to create a new database and user for mautic. We will create new database named 'mautic', user 'mauticuser' with password 'aqwe123'.

Login to the MySQL shell using the following mysql command.

mysql -u root -p

Create a new database and user using the following queries.

create database mautic;grant all on mautic.* to 'mauticuser'@'localhost' IDENTIFIED BY 'aqwe123';flush privileges;exit;

MariaDB database has been installed, and the database for Mautic installation has been created.

Step 3 - Install and Configure PHP-FPM

Mautic requires at-least PHP 5.6.19 for the installation. So for this guide, we will be using PHP-FPM 7.0 for our mautic installation.

Install PHP and PHP-FPM (with all required extensions) using the apt command below.

Reference

Muhammad Arul is a freelance system administrator and technical writer. He is working with Linux Environments for more than 5 years, an Open Source enthusiast and highly motivated on Linux installation and troubleshooting. Mostly working with RedHat/CentOS Linux and Ubuntu/Debian, Nginx and Apache web server, Proxmox, Zimbra Administration, and Website Optimization. Currently learning about OpenStack and Container Technology.