How to install Mautic on CentOS 7

To install Mautic on CentOS 7

Mautic is a free and open source marketing automation application that can be used to save time and increase sales. The user can also integrate mautic with various email services like Gmail, Sendgrid and mandrill. It supports Social media marketing, contact management, campaigns, reports and forms. This tutorial explains the installation procedure of Mautic on CentOS 7.

Pre-Requisite

LAMP Setup

-Apache

-MariaDB

-PHP version 7 and above along with extensions (mod_php71w php71w-cli php71w-common php71w-gd php71w-mbstring php71w-mcrypt php71w-mysqlnd php71w-xml)

Installation procedure

To proceed with the installation procedure, go to its official website and get the latest stable package link. Run the wget command followed by the download link to download the package.

[root@linuxhelp ~]# wget https://www.mautic.org/download/latest  -0  mautic.zip

Extract the downloaded package in Apache root directory and execute the following command.

[root@linuxhelp ~]# unzip mautic.zip  -d /var/www/html
inflating: /var/www/html/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/OpenDocument/WriterPart.php  
  inflating: /var/www/html/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/OpenDocument.php  
   creating: /var/www/html/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/PDF/
  inflating: /var/www/html/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/PDF/Core.php  
.
.
.
.
inflating: /var/www/html/vendor/willdurand/oauth-server-bundle/Service/Signature/OAuthHmacSha1Signature.php  
  inflating: /var/www/html/vendor/willdurand/oauth-server-bundle/Service/Signature/OAuthPlainTextSignature.php  
  inflating: /var/www/html/vendor/willdurand/oauth-server-bundle/Service/Signature/OAuthRsaSha1Signature.php  
  inflating: /var/www/html/vendor/willdurand/oauth-server-bundle/Service/Signature/OAuthSignatureInterface.php  
  inflating: /var/www/html/vendor/willdurand/oauth-server-bundle/Service/XAuthServerService.php  
   creating: /var/www/html/vendor/willdurand/oauth-server-bundle/Util/
  inflating: /var/www/html/vendor/willdurand/oauth-server-bundle/Util/Random.php  

Move to your Apache root directory by running the cd command and list the files in the directory.

[root@linuxhelp ~]# cd /var/www/html/
[root@linuxhelp html]# ll
total 88
drwxr-xr-x  9 root root  4096 Sep  6 21:58 app
drwxr-xr-x  2 root root   109 Sep  6 21:58 bin
-rw-r--r--  1 root root    18 Sep  6 21:59 critical_migrations.txt
-rw-r--r--  1 root root 12862 Sep  6 21:57 favicon.ico
-rw-r--r--  1 root root   992 Sep  6 21:57 index.php
-rw-r--r--  1 root root 38407 Sep  6 21:57 LICENSE.txt
drwxr-xr-x  7 root root    67 Sep  6 21:58 media
-rw-r--r--  1 root root  4043 Sep  6 21:57 offline.php
drwxr-xr-x 12 root root  4096 Sep  6 21:57 plugins
-rw-r--r--  1 root root   224 Sep  6 21:57 robots.txt
drwxr-xr-x 11 root root  4096 Sep  6 21:57 themes
drwxr-xr-x  2 root root    22 Sep  6 21:57 translations
drwxr-xr-x 47 root root  4096 Sep  6 21:58 vendor

Provide owner permission and file execution permission for the Apache directory.

[root@linuxhelp html]# chown -R apache:apache /var/www/html/
[root@linuxhelp html]# chmod -R 775 /var/www/html/

Open an Apache configuration file named httpd.conf using vim editor and enter the following changes in the file. Save and exit the file.

[root@linuxhelp html]# vim /etc/httpd/conf/httpd.conf
ServerName 192.168.7.165:80
DirectoryIndex index.html index.php

Restart your Apache service by executing the following command.

[root@linuxhelp html]# systemctl restart httpd

Switch over to your browser and enter http://192.168.7.165 in the browser. The Mautic installation page appears on the screen.

Enter the database details to create a new database for Mautic.

Enter the following details to create admin username and password and click next step.

Setup the Email configuration for the Mautic and set the details. Click next.

After completing the configuration process, enter the admin credentials to login to Mautic.

5

The dashboard of Mautic is shown below.

The installation procedure of Mautic on CentOS 7 is done without any glitches.

FAQ
Q
how to download the package of mautic in terminal?
A
get the latest stable package link. Run the wget command followed by the download link to download the package.
# wget https://www.mautic.org/download/latest -0 mautic.zip
Q
why we need to install the mautic on centos?
A
Mautic is a free and open source marketing automation application that can be used to save time and increase sales. The user can also integrate mautic with various email services like Gmail, Sendgrid and mandrill. It supports Social media marketing, contact management, campaigns, reports and forms.
Q
whar are the system requirements for mautiv?
A
refer the link as follow to know the system requirements for mautiv
"https://www.mautic.org/download/requirements/".
Q
How can I get source file for mautic?
A
Use the followign link to get Source of mautic
"https://github.com/mautic/mautic".
Q
where to get the documents for mautic?
A
get the documents for mautic to refer the link as here, "https://www.mautic.org/docs/en/index.html".