Once a LAMP or LEMP stack is configured on your Ubuntu 16.04 box, come back here and follow the instructions below.

Step 1: Download Mautic onto Your Ubuntu 16.04 box

If you go to the official website to download Mautic, you are required to enter your name and email address. If that’s not what you like, then download the latest stable version (2.2.1) using the following command.

wget https://www.mautic.org/download/latest

This file has no extension, but you can know the file type by using the file command.

file latest

Output:

latest: Zip archive data, at least v2.0 to extract

So we know it’s a zip file. Use unzip command to unzip it.

sudo apt install unzip
unzip latest -d mautic

A new directory named mautic will be created. Let’s move it to the document root of web server.

sudo mv mautic/ /var/www/

And then let the web server user (www-data) be the owner of this directory.

The following command will create a database user and password, and at the same time grant all permission of the new database to the new user so later on Mautic can write to the database. Replace red texts with your preferred database name, username and password.

GRANT ALL ON mautic.* TO 'mauticuser'@'localhost' IDENTIFIED BY 'password';

Nginx users don’t need to reload their web server. Now refresh the install wizard page and click Next Step.

Enter MariaDB/MySQL database details.

And create an admin user for your Mautic installation

Configure email settings. Note that you have many options in mailer transport. You can use PHP Mail, sendmail, or Gmail or integrate Mautic with third-party email services like Mandrill, Sendgrid, Amazon SES. These settings can always be changed after installation in Mautic configurations page.

Once it’s done, you can log into your Mautic marketing automation platform.

Mautic Marketing Automation Software Dashboard

If you chose to use sendmail or other SMTP server to send emails to your leads, you may want to check out the following tutorial which shows you how to set up your own email server.

And if 500 internal server error occurred, please check out Mautic logs, which can be found in /web-root-path/app/logs/ directory. After mautic is installed, you may want to check out Mautic getting started guide to add cron jobs, download IP lookup service database and install the tracking JavaScript.