How to Install and Configure Mautic on Ubuntu 16.04

 

Mautic is a open source application that can be use for increase sales. you can use Mautic with various mail service like-yahoo,google

for configure mautic we need full privileges setup on your server and os Ubuntu 16.04 64bit.

Step 1

First we will update system and update version of Ubuntu.

sudo apt-get update -ysudo apt-get upgrade -y

Step 2

Installing LEMP Stack

Before Starting WE need to install Nginx web server,PHP and MariaDB

sudo apt-get install nginx mariadb-server php7.0-fpm php7.0-mbstring php7.0-xml php7.0-mysql php7.0-common php7.0-gd php7.0-json php7.0-cli php7.0-curl

After Install Complete  Need to start and enable Nginx service

sudo systemctl start nginxsudo systemctl enable nginx

sudo systemctl status nginx

sudo systemctl status mysql

If MariaDB is not Running then execute below below command

sudo systemctl start mysql

sudo systemctl enable mysql

 

You can secure it by running the mysql_secure_installation script:

sudo mysql_secure_installation

Step 3

Install Mautic

download it with the following command:

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

unzip download file and change permission

sudo unzip latest -d /var/www/html/mautic

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

Step 4

Configure MariaDB for mautic

Login Mysql and create databases

mysql -u root -p

 MariaDB [(none)]> create database mautic;
    Query OK, 1 row affected (0.00 sec)MariaDB [(none)]> grant all on mautic.* to 'mauticuser'@'localhost' IDENTIFIED BY 'password';
    Query OK, 0 rows affected (0.07 sec)MariaDB [(none)]> flush privileges;
    Query OK, 0 rows affected (0.04 sec)

MariaDB [(none)]> exit; Bye

Step 5

Configure Nginx for Mautic

Now we will create Virtual Host.

sudo vim /etc/nginx/conf.d/mautic.conf

Add the following line

server {
     listen 80;
     listen [::]:80;
     server_name 192.168.15.100;root /var/www/html/mautic;index index.php index.html index.htm index.nginx-debian.html;location / {
       try_files $uri $uri/ =404;
     }location ~ .php$ {
       include snippets/fastcgi-php.conf;
       fastcgi_pass unix:/run/php/php7.0-fpm.sock;
     }location ~* ^/index.php {
       fastcgi_split_path_info ^(.+.php)(/.+)$;fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
       fastcgi_index index.php;
       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;include fastcgi_params;

fastcgi_buffer_size 128k; fastcgi_buffers 256 16k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; } }

Save the file and create prod directory:

sudo mkdir /var/www/html/mautic/app/cache/prod

then start nginx service

sudo nginx -t sudo systemctl reload nginx

Access Mautic through web interface

URL http://your-server-ip. see the output

Next, click on Next button and provide the MariaDB database details as follows:

Next, create an admin user for your Mautic installation:

Next, configure email settings:

After Finish Installation, please Mautic marketing automation platform as below

enjoy

 

 

Related posts

One Thought to “How to Install and Configure Mautic on Ubuntu 16.04”

  1. arafat

    Selutt Bosss…..

Leave a Comment