Mautic is free and open source marketing automation application that can be used to save time and increase sales. You can also integrate mautic with various email services like Gmail, Sendgrid and Mandrill.
In this tutorial we will learn how to install Mautic on Ubuntu 16.04 server.
A server running Ubuntu-16.04.
A non-root user with sudo privileges setup on your server.
Update the System
First, you will need to update the system with latest version of Ubuntu. You can do this with the following command:
sudo apt-get update -ysudo apt-get upgrade -y
Installing LEMP Stack
Before starting, you will need to install the Nginx web server, PHP and MariaDB as a prerequisite of Mautic.
You can install this by running the following command:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libaio1 libcgi-fast-perl libcgi-pm-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl libfcgi-perl libgd3 libhtml-parser-perl
Once installation is complete, start Nginx server and enable it to start on boot:
You can see the status of Nginx and MariaDB with the following command:
sudo systemctl status nginx
nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2016-11-13 23:42:09 IST; 2min 48s ago
Main PID: 17443 (nginx)
├─17443 nginx: master process /usr/sbin/nginx -g daemon on; master_process on
└─17444 nginx: worker process
Nov 13 23:42:09 Node1 systemd: Starting A high performance web server and a reverse proxy server...
Nov 13 23:42:09 Node1 systemd: Started A high performance web server and a reverse proxy server.
Nov 13 23:44:21 Node1 systemd: Started A high performance web server and a reverse proxy server.
sudo systemctl status mysql
● mysql.service - LSB: Start and stop the mysql database server daemon
Loaded: loaded (/etc/init.d/mysql; bad; vendor preset: enabled)
Active: active (running) since Sun 2016-11-13 23:42:05 IST; 3min 21s ago
├─17081 /bin/bash /usr/bin/mysqld_safe
├─17082 logger -p daemon err -t /etc/init.d/mysql -i
├─17226 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --skip-log-error --pid-fi
└─17227 logger -t mysqld -p daemon error
If MariaDB is not running, start it with the following command:
sudo systemctl start mysql
Then, enable MariaDB service to start at boot with the following command:
sudo systemctl enable mysql
Next, you will need to secure MariaDB because default MariaDb installation is not secured.
You can secure it by running the mysql_secure_installation script:
Answer all the questions as shown below:
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
First, you will need to download the latest version of Mautic from it's official website.
Otherwise, you can download it with the following command:
The downloaded file is a zip archive. You can extract it using unzip command:
Looking for the right web hosting solution for your website can be an intimidating task. Options nowadays are more diversified than ever, and each year brings new developments in the web hosting market. If you have no clue of what to look out for, you can find yourself overwhelmed with...
Content marketing continues to be one of the most valuable tools for today’s online businesses. With content, you can improve your chances of reaching your target audience, boost your search engine standing, and even unlock new opportunities for sales. The more content you produce, the more you can strengthen your...
User Experience (UX) is one of the most crucial factors to consider in web design. As the number of websites and applications in the world today continues to accelerate, businesses are under more pressure than ever to impress customers straight away. If a user visits your website and finds slow-loading...