Installing Mautic on Fedora Server Latest

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.

Prerequisites

Before beginning the installation process, ensure that the following prerequisites are met:

Steps

  1. Update the package manager.

    $ sudo dnf update -y
    
  2. Install Apache web server.

    $ sudo dnf install httpd -y
    
  3. Start the Apache web server.

    $ sudo systemctl start httpd
    
  4. Enable the Apache web server to start at boot time.

    $ sudo systemctl enable httpd
    
  5. 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
    
  6. Install MariaDB database server.

    $ sudo dnf install mariadb-server -y
    
  7. Start the MariaDB database server.

    $ sudo systemctl start mariadb
    
  8. Enable the MariaDB database server to start at boot time.

    $ sudo systemctl enable mariadb
    
  9. Secure the MariaDB database server.

    $ sudo mysql_secure_installation
    
  10. 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/
    
  11. 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
    
  12. 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;
    
  13. 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
    
  14. 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.

  15. After completing the installation, remove the app/config/local.php file.

    $ sudo rm /var/www/html/mautic/app/config/local.php
    

Conclusion

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!