5XX error codes shows server side issue, if you are getting 500 internal server error then it means there is any issue from server.
You can try to resolve this issue with below steps:
Check your .htaccess file.
check your syntax error
Increase PHP timeout limit.

You can check here to resolve this error.