HTTP 500 Error

Sun, 6 Feb 2011

If you get this error: "The website encountered an error while retrieving" ... it's a HTTP 500 Error. In Apache it's hard to find out what's really going on because it doesn't tell you many details.

Most problems have to do with .htaccess and invalid syntax. On CentOS your Apache error log is at: /var/log/httpd/error_log if you need to see it.

If you are not getting any warning in your Apache it's probably a PHP error. To find out what's going on, open your .htaccess file inside your directory and add:

php_flag display_errors on
php_value error_reporting 9999

Refresh the page, and you'll see any underlying PHP errors.