500 Internal Server Error PHP

You often get “500 – Internal server error” error message when a user tries to access your Apache based dynamic PHP application.

Mainly, to solve this problem, you need to check error logs located here,
>> var/log/message
>> /var/log/httpd/error_log
500 Internal Server Error PHP
This error only occurs when there is a issue in your web server. This problem can cause because of:

  • An invalid directive in .htaccess file
  • issues in php.ini
  • Any Missing configuration in server

Most of the case it is .htaccess file issue, but in one of my case I was getting error while trying to send email via PHP code using mail() function, later on after finding realized there was misconfiguration in http://www.apache.org/ send_mail.

You might like:

Leave a Reply