Saturday, March 10, 2018

linux - Force Apache to display PHP errors instead of 500

I have a development server with Apache 2.2.8 /PHP 5.2.4 on Ubuntu Server 8.04. Sometimes my php code returns an Internal server 500 error instead of outputting the errors to the page.



The Apache error.log contains no entries regarding the 500 error and the access.log only contains the one line referencing that the 500 error occurred. In php.ini error_reporting = E_ALL and display_errors = On.



How do I get Apache or PHP to display the error on the page instead of a generic 500 error.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...