Install Mautic on Linux (AWS)

mautic-image

Simple steps to install Mautic on Linux (AWS)

Introduction about Mautic :

Mautic is marketing automation software (email, social & more), competing with the likes of HubSpot, Pardot and Silverpop. Many of those commercial products are hosted (so you can’t modify them easily) and extraordinarily expensive but Mautic is OpenSource publicly available under GPL (General Public Licensing)

Some main features of Mautic :

  • Social Media Marketing

  • Lead Management

  • Email Marketing

  • Forms

  • Campaigns

For more visithttps://www.mautic.org/

 Install mautic on linux (AWS) 

Pre-requisite :

  • PHP
    • Install latest PHP version if already installed, make sure PHP version > 5.3.
      • Command to install php :

$sudo yum install php56-common php56-gd  php56-mbstring php56-mcrypt php56-mysqlnd php56-imap php56-intl

Note : Make sure to install all the php package extensions such as php56-mbstring, php56-mcrypt, php56-mysqlnd, php56-imap, php56-intl.

  • Apache server
    •  Command to install $ sudo yum install httpd
  • MySQL-server
    • Command to install $sudo yum install mysql

Step 1 : Download Mautic setup

It can be done in two ways manually downloading setup via https://www.mautic.org/download/ or by using wget command.

$wget https://s3.amazonaws.com/mautic/releases/1.2.4.zip

Step 2 : Unzip setup file 1.2.4.zip :

$unzip 1.2.4.zip /var/www/html/mautic

Note :  Make sure you extract the setup to /var/www/html directory

Step 3 : Chown all the files and directories of mautic directory in /var/www/html :

Change ownership of files and directory to apache user  by default it would be root.

You can check ownership using command $ls -l :

chown-directory
It should look like this.

Command to change ownership from root to apache user :

$ sudo chown -R apache:apache /var/www/html/mautic

Step 4 : Point browser to mautic directory

Make sure apache server is running first : $ sudo service httpd status


If you’re using localhost then point browser to http://localhost:80/mautic  or else while installing it on AWS instance then point your browser to instances’ elastic ip  for eg : http://52.64.32.168/mautic

Note: As reported by many viewers you might will have to explicitly point URL to http://localhost:80/mautic/index.php . The reason for that is httpd donot have by default configs to render a file .php extension.

 Types of error you might face and their solutions :

Currently offline error :

mautic-site-notavailable
Problem with permissions or ownership

If you receive such page when you point browser to the above link. Please check you have changed ownership of file and directory of mautic properly as mentioned above.

 

Problem with PHP version or extensions :

mautic-extensions
Problem with PHP version or extension

If you receive an error regarding PHP version then you have to make sure you have right supported version installed on your system.

If you’re getting so recommendation regarding extension then just install all the extension for eg : sudo yum install php56-mbstring php56-imap php56-intl

These are not critical errors but it might affection application functioning. Once that is done you should be good to proceed with futher steps.

nextstep-mautic
You can ignore this recommendations and proceed futher

Step 5 : Step database

mautic-db-setup

Enter the details of MySQL database such as host, username, port, password and proceed futher by create a database for mautic.

If any error faced at this stage you might want to look at MySQL database and check if its running.

Step 6 :  Creating Admin user

create-admin-iuser
Create admin user page

Step 7 : Configure Email

php-mail-mautic
You can select preferred email service. By default leave it to PHP mail

 

Step 8 : Login into dashboard

Now login with username and password of admin which will redirect to Mautic dashboard.

mautic-dashboard
Mautic Dashboard

 

That’s it! You have successfully installed and configured Mautic.

Any queries or issues feel free to comment below will try to revert back as soon as I can.

Thank you for your time! 🙂




Blogger & Assc Cloud Architect

Site Footer