403 Forbidden after fresh install with Softaculous

Your software
My Mautic version is: 4.2.1
My PHP version is: 7.4
My Database type and version is:

Your problem
I am trying to install for the first time using softaculous. It indicates that the installis a success however when I try to log in I get a 403 access forbidden

These errors are showing in the log:

Steps I have tried to fix the problem: uninstalled and then reinstalled


  1. can you please confirm, that the login page works and the issue is only after login?
  2. Do you have SSL installed?

The log in does not work. When I navigate to the login url I immediately get a 403

Also worth checking if you’re using Mautic in a sub-folder. If you are, I expect you’ll need to update your htaccess file to reflect that.

Do you have SSL installed?

Yes. It is just the free SSL with namehero hosting

i also tried to install in a subdomain as opposed to a folder buthad same results

Seems like a htaccess error.
Can you see a “hidden” .htaccess file in the main dir?

Yes there is a hidden .htaccess file in th emain

I renamed it to _old but the 403 is still being shown

Can you plz read this? Does the workarounds mentioned here help?

There is no line that matches this in my htaccess file. Additionally I renamed the entire htaccess file so that it was not being called at all and the problem persisted. This leads me to believe that it is not an htaccess issue right?

Hi @gmiotke

I am from Softaculous team.

Apologies for the inconvenience caused to you.

You can open a support ticket with us and we shall look into it.

PS: If you can provide your server details in the ticket (it is completely secure and the details shall be wiped off once the ticket is closed). As it would be faster to check and resolve the issue on your server.

1 Like

I have just removed comment the following lines in .htaccess and everything is working

# Apache 2.4+
<IfModule authz_core_module>
    # Deny access via HTTP requests to all PHP files.
    <FilesMatch "\.php$">
        # Comment the following line to avoid 403 error
        #Require all denied

    # Deny access via HTTP requests to composer files.
    <FilesMatch "^(composer\.json|composer\.lock)$">
        Require all denied

    # Except those allowed below.
    <If "%{REQUEST_URI} =~ m#^/emails/(index|index_dev|upgrade/upgrade)\.php#">
        Require all granted