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
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.
Leave a Reply
You must be logged in to post a comment.