This guide provides step-by-step instructions for installing Mautic on Ubuntu 24 using NGINX, PHP 8.0, and MySQL.
Prerequisites#
- Ubuntu 24 server
- Root or sudo access
Step 1: Update System#
Step 2: Install NGINX#
Step 3: Install PHP and Required Extensions#
Set PHP 8.0 as the default version:
Step 4: Install MySQL Server#
Step 5: Create MySQL Database and User for Mautic#
Once in the MySQL prompt, run the following commands:
Replace 'password' with a strong, secure password.
Step 6: Install Composer#
Step 7: Download and Set Up Mautic#
Set proper permissions:
Create a new NGINX server block:
Paste the following configuration:
Enable the new configuration:
Step 9: Install SSL Certificate#
Follow the prompts to obtain and install the SSL certificate.
Step 10: Final Setup#
- Open your browser and navigate to
https://mautic.example.com
.
- Follow the on-screen instructions to complete the Mautic installation.
- Use the database credentials you set up in Step 5.
Troubleshooting#
If you encounter any issues, check the NGINX error logs:
Ensure all file permissions are correct:
Remember to replace mautic.example.com
with your actual domain name throughout this guide.