# 500 Internal server error

**URL:** <https://forum.shopware.com/t/500-internal-server-error/66185>\
**Category:** Installation / Getting Started (EN)\
**Created:** [11. April 2020 um 10:05 UTC](https://forum.shopware.com/t/500-internal-server-error/66185 "2020-04-11T10:05:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wichard](https://avatars.discourse-cdn.com/v4/letter/w/7bcc69/32.png) [@Wichard](https://forum.shopware.com/u/Wichard)\
**Post date:** [11. April 2020 um 10:05 UTC](https://forum.shopware.com/t/500-internal-server-error/66185/1 "2020-04-11T10:05:28Z")

</div>

Hello there community,

I have been trying to install Shopware 6 on my cpanel server at [Fastcomet.com](http://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/](https://sitesetup.nl/)

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

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&nbsp;/public&nbsp;directory of your Shopware installation.

Please configure your web server to root your domain to the&nbsp;/public&nbsp;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

&nbsp; &nbsp; RewriteCond %{REQUEST\_URI}::1 ^(/.+)/(.\*)::\2  
&nbsp; &nbsp; RewriteRule ^(.\*) - [E=BASE:%1]

&nbsp; &nbsp; # Sets the HTTP\_AUTHORIZATION header removed by Apache  
&nbsp; &nbsp; RewriteCond %{HTTP:Authorization} .  
&nbsp; &nbsp; RewriteRule ^ - [E=HTTP\_AUTHORIZATION:%{HTTP:Authorization}]

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

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

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

RedirectMatch 302 ^/$ /index.php/  
  
  
  
  
&nbsp;

Hope someone of you can help me!

Thanks a lot,

Greetings

Wichard

---

<div class="post-metadata">

**Author:** ![Wichard](https://avatars.discourse-cdn.com/v4/letter/w/7bcc69/32.png) [@Wichard](https://forum.shopware.com/u/Wichard)\
**Post date:** [11. April 2020 um 10:23 UTC](https://forum.shopware.com/t/500-internal-server-error/66185/2 "2020-04-11T10:23:25Z")

</div>

**Solved** the issue after changing file permissions! Changed all folders to: 755 and files to 644.

For some reason when I extracted the zip file the permission were changed.

---

<div class="post-metadata">

**Author:** ![larabrian](https://avatars.discourse-cdn.com/v4/letter/l/ecae2f/32.png) [@larabrian](https://forum.shopware.com/u/larabrian)\
**Post date:** [9. Juli 2020 um 06:58 UTC](https://forum.shopware.com/t/500-internal-server-error/66185/3 "2020-07-09T06:58:03Z")

</div>

The first thing you need to know about an 500 Internal Server Error is that the error can only be resolved by fixes to the Web server software. It is not a client-side problem meaning that the problem is not with your browser, your computer, or your internet connection.&nbsp; This is a ‚catch-all‘ error generated by the Web server. Basically something has gone wrong, but the server can not be more specific about the error condition in its response to the client. In addition to the 500 [Internal Server Error](http://net-informations.com/q/mis/500.html) notified back to the client, the Web server should generate some kind of internal error log which gives more details of what went wrong. It is up to the operators of the Web server site to locate and analyse the logs which should give further information about the error. However, there are often ways to quickly get around the problem:

- Reload the web page.
- Clear your browser cookies and cache
- Come back later.
- Finally, Ask your Hosting Provider

&nbsp;

---

<div class="post-metadata">

**Author:** ![Shrek](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Shrek](https://forum.shopware.com/u/Shrek)\
**Post date:** [23. April 2021 um 08:47 UTC](https://forum.shopware.com/t/500-internal-server-error/66185/5 "2021-04-23T08:47:08Z")

</div>

I have same issue. everythig is working fine when I call the public folder directly in URL. However, using the redirect of document root I get the error 500.  
All files (644) and folders (755) have the correct attributes.  
Interstingly, when I call the root folder of the Sw installation, I get a correct message that I should use „Public“ instead.  
Any help is appreciated. Thanks

---

<div class="post-metadata">

**Author:** ![Scott](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Scott](https://forum.shopware.com/u/Scott)\
**Post date:** [27. Oktober 2021 um 16:40 UTC](https://forum.shopware.com/t/500-internal-server-error/66185/6 "2021-10-27T16:40:00Z")

</div>

I have the same issue, I thought maybe it is in the .env. I checked and double checked the url paths

Composer-HOME path: server url path here/public/var/cache/composer  
it’s correct

APP\_URL: points to DomainName/public  
it’s correct

---

<div class="post-metadata">

**Author:** ![Dennis.s](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/dennis.s/32/15372_2.png) [@Dennis.s](https://forum.shopware.com/u/Dennis.s)\
**Post date:** [9. November 2021 um 15:14 UTC](https://forum.shopware.com/t/500-internal-server-error/66185/7 "2021-11-09T15:14:40Z")

</div>

Is there any solution for this case?  
I have a similar case, with CentOS 7.9 + cPanel, I’ve changed a document root to public folder as described at [https://support.cpanel.net/hc/en-us/articles/360051373774-How-to-change-the-document-root-for-a-cPanel-account](https://support.cpanel.net/hc/en-us/articles/360051373774-How-to-change-the-document-root-for-a-cPanel-account)  
The permissions are correct  
But still seeing error 500 on the frontend, without any entries in apache log

---

<div class="post-metadata">

**Author:** ![WilliamKeating](https://avatars.discourse-cdn.com/v4/letter/w/7cd45c/32.png) [@WilliamKeating](https://forum.shopware.com/u/WilliamKeating)\
**Post date:** [9. Februar 2022 um 09:31 UTC](https://forum.shopware.com/t/500-internal-server-error/66185/10 "2022-02-09T09:31:43Z")

</div>

Having the same issue[.](https://paintballreal.com/)
