500 Internal server error

Hello there community,

I have been trying to install Shopware 6 on my cpanel server at Fastcomet.com. However, I keep getting a 500 internal server error.

Below are the steps i’ve done when trying to install Shopware 6.

  1. I downloaded Shopware 6 from the website.

  2. I extracted all the installation files in the root directory of my domain: https://sitesetup.nl/

  3. When I first assessed my website, I’ve got the following message: 

Shopware Root Directory

You should not be able to see this page.
If yes you are missing some important server configuration. For security reasons, all accessible files are located in the /public directory of your Shopware installation.

Please configure your web server to root your domain to the /public directory of this installation.

  1. What I did next is, I adjusted the root directory to point to the /public folder.

  2. Now when I try to access the site, it returns a 500 internal server error. I have browsed the internet and the forum. But I was unable to find a solution.

I think it has something to do with the .htaccess file. But I don’t know how to set up the file correctly;/ This is how it looks currently:

DirectoryIndex index.php



Options -MultiViews



RewriteEngine On

    RewriteCond %{REQUEST_URI}::1 ^(/.+)/(.\*)::\2
    RewriteRule ^(.*) - [E=BASE:%1]

    # Sets the HTTP_AUTHORIZATION header removed by Apache
    RewriteCond %{HTTP:Authorization} .
    RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{ENV:REDIRECT_STATUS} ^     RewriteRule ^index\.php(?:/(.\*)|) %{ENV:BASE}/$1 [R=301,L]

    # If the requested filename exists, simply serve it.
    # We only want to let Apache serve files and not directories.
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^ - [L]

    # Rewrite all other queries to the front controller.
    RewriteRule ^ %{ENV:BASE}/index.php [L]





RedirectMatch 302 ^/$ /index.php/




 

Hope someone of you can help me!

Thanks a lot,

Greetings

Wichard