I am getting an 500 error on my site, what should I do?

If you are getting a 500 Internal Server Error on your site, it is usually caused by a PHP coding error or a corrupted .htaccess file.

To analyze PHP errors, check the error_log files using File Manager in cPanel or via FTP/SSH. These files are typically located in your public_html directory or within the specific folder where your website files are stored.

The error log file is usually located in the directory where the code is being executed. For example, if you encounter a 500 Internal Server Error on your website’s homepage or main file, the error_log file will typically be found in the public_html folder.

However, if the 500 error occurs only within a specific directory (such as the WordPress admin area), the error_log file will be located inside that directory—for example: public_html/wp-admin/.

Error Logging When Using NGINX (CloudNS or Bolt Cache)

If your domain or directory is using CLOUDNS or Bolt Cache and is configured to run on Native NGINX, PHP will be handled using PHP-FPM.

In this setup, error logs are stored in the following locations: