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:
Truth be told, it’s difficult for a web application that doesn’t have some kind of identification, even if you don’t see it as a security measure in and of itself. The Internet is a kind of lawless land, and even on free services like Google’s, authentication ensures that abuses will...
Although data persistence is almost always a fundamental element of applications, Node.js has no native integration with databases. Everything is delegated to third-party libraries to be included manually, in addition to the standard APIs. Although MongoDB and other non-relational databases are the most common choice with Node because if you...