Mautic is an open-source marketing automation platform that enables users to create, manage, and measure their marketing campaigns. This tutorial guides you through the process of installing Mautic on a Fedora Server.
Before beginning the installation process, ensure that the following prerequisites are met:
Update the package manager.
$ sudo dnf update -y
Install Apache web server.
$ sudo dnf install httpd -y
Start the Apache web server.
$ sudo systemctl start httpd
Enable the Apache web server to start at boot time.
$ sudo systemctl enable httpd
Install PHP 7.2 and its required extensions.
$ sudo dnf install php php-common php-cli php-opcache php-mysqlnd php-gd php-curl php-imap php-xml -y
Install MariaDB database server.
$ sudo dnf install mariadb-server -y
Start the MariaDB database server.
$ sudo systemctl start mariadb
Enable the MariaDB database server to start at boot time.
$ sudo systemctl enable mariadb
Secure the MariaDB database server.
$ sudo mysql_secure_installation
Download and extract the latest version of Mautic.
$ sudo dnf install wget -y
$ sudo wget https://github.com/mautic/mautic/releases/latest/download/mautic.zip
$ sudo dnf install unzip -y
$ sudo unzip mautic.zip -d /var/www/html/
Set the appropriate permissions for the extracted files.
$ sudo chown -R apache:apache /var/www/html/mautic
$ sudo chmod -R 755 /var/www/html/mautic
Create a new database and user for Mautic.
$ sudo mysql -u root -p
> CREATE DATABASE mautic;
> CREATE USER 'mauticuser'@'localhost' IDENTIFIED BY 'yourpassword';
> GRANT ALL PRIVILEGES ON mautic.* TO 'mauticuser'@'localhost';
> FLUSH PRIVILEGES;
> EXIT;
Configure the Apache web server to host Mautic.
$ sudo nano /etc/httpd/conf.d/mautic.conf
Add the following configuration to the file.
<VirtualHost *:80>
ServerName your.server.name
DocumentRoot /var/www/html/mautic
<Directory /var/www/html/mautic>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/httpd/mautic_error.log
CustomLog /var/log/httpd/mautic_access.log combined
</VirtualHost>
Save the file and exit.
$ sudo systemctl restart httpd
Launch the Mautic installer by navigating to http://your.server.name
in your web browser.
Follow the on-screen instructions to complete the installation process.
After completing the installation, remove the app/config/local.php
file.
$ sudo rm /var/www/html/mautic/app/config/local.php
In this tutorial, you learned how to install Mautic on a Fedora Server. Mautic is now installed and ready for you to create marketing campaigns.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!