A verdade é que, como recomendação, posso te dizer para colocar no google erro 500 e ler, é uma boa prática nestes casos.
Se você quer ajuda do fórum, recomendo deixar mais informações sobre o que, onde e como (falo sobre código e você não precisa dar o código, mas sim uma descrição para termos uma ideia).
Deixo um copy paste de algo que talvez resolva sua dúvida e, se não, recomendo usar o "google", é seu melhor amigo.
Fixing 500 Internal Server Error Problems on Your Own Site
A 500 Internal Server Error on your own website requires a completely different course of action. As I mentioned above, most 500 errors are server-side errors, meaning it's likely your problem to fix if it's your website.
There are lots of reasons why your site might be serving a 500 Error to your users, but two are most common:
A Permissions Error. In most cases, a 500 Internal Server Error is due to an incorrect permission on one or more files or folders. In most of those cases, an incorrect permission on a PHP and CGI script is to blame. These should usually be set at 0775 (-rwxr-xr-x).
A PHP Timeout. If your script connects to external resources and those resources timeout, an HTTP 500 error can occur. Timeout rules, or better error handling in your script, should help if this is the cause of the 500 error.
A Coding Error in .htaccess. While not as common, be sure to check that your site's .htaccess file is properly structured.