24 C
Texas
Muhammad Nabeel
Network and System Administrator

Install Mautic Open Source Marketing Automation Tool on RHEL 8 / CentOS 8

Mautic is open source marketing automation software written in PHP. Mautic is a web based application provides Graphical User Interface. It allows you to easily manage social media engagement, contacts, email marketing, forms, campaign management, data analysis reports, etc.

In this article, You will learn that how to install the Mautic on RHEL 8 and CentOS 8.

Step 1: Disable SELinux

Open file /etc/selinux/config using below command and modify line from SELINUX=enforcing
to SELINUX=disabled

vi /etc/selinux/config
- Advertisement -

save changes and exit

Now reboot your machine

reboot

Step 2: Install EPEL 8 Repository on RHEL 8 / CentOS 8

dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf -y install wget unzip

Step 3: Install LAMP on RHEL 8 / CentOS 8

Install Apache Web Server

dnf -y install httpd

systemctl start httpd
systemctl enable httpd

Install and Configure PHP

dnf install -y php php-common php-cli php-zip php-curl php-pear php-intl php-pdo php-mysqlnd php-pgsql php-gd php-mbstring php-json php-xml

Now edit /etc/php.ini file and make following changes.

vi /etc/php.ini

Un-comment the ;date.timezone = line and set the default time zone to “UTC”

date.timezone = "UTC"

and set mem_limit to 256

memory_limit = 256M

Install MariaDB Server

dnf -y install mariadb-server

Start and enable MYSQL service on boot.

systemctl start mariadb
systemctl enable mariadb

Complete MYSQL installation

mysql_secure_installation

Set root password? [Y/n] Y
New password: password
Re-enter new password: password
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y

Create a MySQL database for Mautic

Log into the MariaDB console using below command and type your password when asked.

mysql -u root -p

Now create a new MariaDB user and grant it privileges on the created database. You can replace username and password with the username and password of your own choice. Create a new database name “mautic”

CREATE DATABASE mautic;
CREATE USER 'database_user'@'localhost' IDENTIFIED BY 'user_password';
GRANT ALL PRIVILEGES ON database_name.* TO 'database_user'@'localhost';

Exit the MySQL console.

FLUSH PRIVILEGES;

exit

Step 4: Download Mautic and unzip it

Now download the mautic source code using wget, then extract it to the ‘html’ directory using the unzip command.

First of all switch to /var/www/html directory.

cd /var/www/html

Now download mautic zip file and named it mautic.zip

wget https://www.mautic.org/download/latest -O mautic.zip

Now unzip mautic.zip file in /var/www/html directory.

unzip mautic.zip -d /var/www/html

Now change ownership of html direcotry and set appropriate permissions.

chown -R apache:apache /var/www/html
chmod -R 755 /var/www/html

Step 5: Apache Confoguration

Now edit Apache configuration file and set your server IP in it and add index.php in DirectoryIndex

vi /etc/httpd/conf/httpd.conf

ServerName YOUR-SERVER-IP:80

DirectoryIndex index.html index.php

Save changes and exit

Then restart Apache server

systemctl restart httpd

Step 6: Adding Apache Service in Firewall

firewall-cmd --add-port={80/tcp,443/tcp} --permanent
firewall-cmd --reload

Step 7: Mautic Marketing Automation Tool Installation

Finally open your browser and browse the link

http://YOUR-SERVER-IP

Click on “Next Step” and proceed to installation.

Now enter database details on the next page as below.

Then create admin login credentials for Mautic and click “Next Step”

Setup email configuration for mautic and click “Next Step”

After installation process, you will be redirected to the below login page, type your login details to access mautic dashboard.

Finally you will see below screen of mautic dashboard.

 

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article