Internal server error 500 är ett väldigt generellt felmeddelande så det är svårt att säga exakt varför det uppstår. Men de vanligaste orsakerna är:
Internal server error 500 is a very generic error message. Therefore, it is very hard to pin down the reason as to why it occurs. However, a few common reasons are:
- Wrong permissions – Files and directories should not be writable by any other users than your own account. Therefore, directories should have permissions 755, and files 644. You can read more about how you set permissions here.
- Errors in .htaccess files – Even the tiniest syntax error in a
.htaccess
file will cause a 500 error, for instance if you happen to type a dot too many, of if you miss a space. The easiest way to see if the.htaccess
file is causing the problem is by renaming it, e.g. to htaccess.txt. If the 500 error disappears, you know something in that file is wrong. You can read more here about hos you change the name of a file.
To find which row causes the problem in the file, edit the file and comment out one section at a time. You comment out a row by adding a#
to the beginning of the row.
The error log available via cPanel should be able to help you find where the problem resides. You find it by first logging on to cPanel and then clicking the icon Errors
under Metrics
.

Here you will see the last 300 lines of the error log of the server related to your account. You will not see any PHP errors here. PHP errors are logged in a different way, which you can find more information about here.