403 Forbidden

Your software
My Mautic version is: 5.1
My PHP version is: 8.1
My Database type and version is: softaculous

Your problem
My problem is: i am trying to download a fresh install using softalucous. However I keep getting a 403 forbidden page. When I comment out the apache line

# Deny access via HTTP requests to all PHP files.
<FilesMatch “.php$”>
# Comment the following line to avoid 403 error
#Require all denied

and made changes to

Except those allowed below.

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

These errors are showing in the log: The “app/bundles/CoreBundle/Resources/views/Offline” directory does not exist (“/opt/cpanel/ea-php81/root/usr/bin/app/bundles/CoreBundle/Resources/views/Offline”)

Steps I have tried to fix the problem:

The 403 error is most likely coming from your htaccess (the “<FilesMatch “.php$”>” bit that you commented out should get around your issue - but will open a security hole)

Your last problem sounds like a memory problem (up your PHP memory to something like 512MB or even 1024MB)