Mautic 3 Installation on DigitalOcean Ubuntu Cloud Server

Mautic installation on Digitalocean server

Mautic 3 Installation on DigitalOcean Ubuntu Cloud Server

Step By Step Tutorial to Install Mautic3 on DigitalOcean Ubuntu Cloud Server

All you might know or experienced that Mautic installation is easy on the cPanel.
In this blog you’ll learn the Mautic3 installation on DigitalOcean or any other cloud server.

There are basically 4 Simple Steps to install Mautic.

Step-1: Setup DigitalOcean droplet
Step-2:
Install the packages required to run Mautic 3.
Step-3: Install Mautic 3 and run the configuration wizard.
Step-4: Setup Mautic 3 Cron Jobs.

This tutorial doesn’t require any kind of technical knowledge. If you are a completely Non-technical person then you can also install and setup mautic 3 on a DigitalOcean or any other cloud server.

You just have to copy all the command I have mentioned in this blog. Don’t miss a Single Command.

Step-1: Create and Setup DigitalOcean droplet

Visit the DigitalOcean website and create an account If you already have an account then you should go to the digital ocean dashboard and look out for the create a droplet option.

Droplet on DigitalOcean can be created in 7 easy steps.

a) Select the Ubuntu Version
I recommend to use the Ubuntu version (Ubuntu 18.04 LTS X64).

b) Choose CPU plan
This Section on DigitalOcean indicates which kind of server you required? so I recommend using the basic shared CPU.

c) Select the CPU Option
You can use the $10/month CPU.

d) Choose a Datacenter region
You have to choose the Datacenter region which means your server will be hosted in that particular country. If your clients reside in the USA then you have to choose the USA similarly you can make decisions based on your target audience.

e) Choose the Authentication mode.
Authentication mode means how you want to connect your server using a password method or the SSH method. I usually prefer to go with the password options.

f) Create a root password
now you have to create a password by which you can access your server using the command prompt or the Putty application.

g) Create Droplet
Now you’ll get the Large green button at the bottom, which indicates to Create droplet. you just have to click on that button and your droplet will be created in few minutes.

Once you click on Create Droplet it’ll take few minutes and your droplet has been created.
Also, you’ll be redirected to the new window and you will see an IP has been provided to your server. that particular IP is the locationof your server as well as you can access your server using that ip.

Step-2: Install the packages required to run Mautic 3.

– Now you have to connect your server using the Putty application.
– Download and install the Putty application.
– You have to open the installed putty application and have to connect your server using the putty.
– Once you open the putty, you have to insert your Hostname or IP address which you have created on the DigitalOcean.
– To access the Server your username is root and password will be the one which you have authenticated at the time of creating the droplet.

username: root
password: password

Let’s get started installing Mautic 3 on DigitalOcean Server, first you have to gain sudo privileges so you have the rights to issue all the commands:

sudo su

Now make sure your server is up to date by updating Ubuntu.

apt update && apt upgrade -y

Now, Install all the required packages (applications) that are needed to run Mautic.

sudo apt install software-properties-commonsudo add-apt-repository ppa:ondrej/phpsudo apt update && apt upgrade -y

Now we are ready to install all the required packages:

apt install mariadb-server apache2 libapache2-mod-php7.3 php7.3 unzip php7.3-xml php7.3-mysql php7.3-imap php7.3-zip php7.3-intl php7.3-curl ntp -y

Now, activate Apache modules that are not active by default after installation.

a2enmod rewrite

Configure Apache:

wget https://mauteam.org/wp-content/uploads/2019/10/000-default.txtmv 000-default.txt /etc/apache2/sites-available/000-default.conf

Now, Create a database for Mautic.

mysql -u root

This command will connect you to your database:

MariaDB [(none)]> CREATE DATABASE mautic DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;GRANT ALL ON mautic.* TO ‘root’@’localhost’ IDENTIFIED BY ‘password’;MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;

After the “EXIT;” command you will return to the normal mode…

Step-3: Install Mautic 3 and run the configuration wizard.

cd /var/www/htmlwget https://github.com/mautic/mautic/releases/download/3.3.3/3.3.3.zipunzip 3.3.3.ziprm 3.3.3.zip

Now, you have to make sure Apache and Mautic, have the ownership and write access to the files.

chown -R www-data:www-data /var/www/htmlchmod -R 775 /var/www/html

Now we are almost done, let’s reload Apache configuration to apply our changes.

service apache2 reload

Prefect, so finally your new Mautic 3 Installation is now completed, now you just need to run the Installation Wizard:

RUN THE MAUTIC 3 CONFIGURATION WIZARD.

Mautic 3 is now ready to be configured, you just need to use a browser, like Chrome or Firefox, and navigate to the IP of your server, preceded with http://

Here’s an excerpt of your configuration for the Mautic Installation Wizard

  • Database driver: MySQL PDO
  • Database Host: localhost
  • Database port: 3306
  • DB name: Mautic
  • Database Table Prefix: Leave empty
  • DB User: root
  • DB Password: password
  • Backup existing tables: No

Step-4: Setup Mautic 3 Cron Jobs.

Read this Blog to Setup Cronjobs for DigitalOcean server, Cloud server or the VPN.

If you have any queries or need any Mautic related help feel free to reach out to me reach out to me.

ASK NOW

No Comments

Post A Comment