How to Install Mautic Marketing Automation Inside RunCloud Server

How to Install Mautic Marketing Automation Inside RunCloud Server

What is Mautic

Mautic is a free and Open Source marketing automation software and it can monitor websites, create landing pages, send emails to make you grow your business.

This is the first time I heard about Mautic since our customers tried to follow the tutorials from LinuxBabe but unable to do it correctly. So I guess we will try to do another tutorial but with RunCloud. This tutorial also follows the LinuxBabe tutorial since I’ve never done this before.

Creating the Web Application

As usual, create your web application inside RunCloud Panel and give it a name like the picture below.

Name: mautic-test (you can use any name that you want)
User: runcloud
PHPVersion: php 7.0

We are using PHP7.0 since Mautic don’t support PHP7.1 yet when this post was published. Please use your selected user in every step below.

SSH, Download, Extract

Now SSH inside your server with the selected username, download the latest Mautic and extract it to the root web app folder.

# SSH into your server using the selected web app user
ssh runcloud@<ip address>

# Change the working directory to your web app root path
cd webapps/mautic-test

# Download the Mautic script. The download might be a bit slow. Just wait for it to finish
wget https://www.mautic.org/download/latest -O mautic.zip

# Unzip it
unzip mautic.zip

Try open it inside the browser

This is what I got when I try to open it from my browser

It will give you a recommendation to enable php_posix.

Enabling php_posix

The php_posix is disabled by default inside RunCloud for security reason. For Mautic, it is just a recommendation, not a requirement. But if you really want to enable that, go to your web app setting and replace all the disable_functions with the text below.

getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,ignore_user_abord,shell_exec,dl,set_time_limit,exec,system,highlight_file,source,show_source,fpassthru,virtual,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,curl_multi_exec,symlink,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server

Save the web application and refresh your browser. You will see the recommendation section disappear.

Create Database and User

Go to RunCloud Panel and create new database and user. I will use mautic for both database name and username. Don’t forget to attach the user to the database.

After you have done that, fill in the database installation inside Mautic as follows. Use 127.0.0.1 for database host because inside RunCloud, we are using TCP instead of UNIX socket for database.

Finishing All Installation Step

After you have added the database, you will be greet with Mautic installation. This should be easy because it is how do you want Mautic to behave.

After you have setup everything inside the installer, login to the Dashboard and you will be greet with beautiful dashboard like the picture below.

Recommendation

When Mautic ask you which service do you want to use to send email, don’t use php mail. I’ve talk about this before inside the email blog post.

Leave a Reply

Your email address will not be published. Required fields are marked *