Tuesday, January 29, 2013

Enable display_errors

Some times we need to enable display_errors = On on php to resolve and troubleshoot some issues. But turning it on globally will make issues to other websites hosted on the server. So the best practice is to
Create a custom php.ini file and then enable display errors on  the custom php.ini file 

To create a custom php.ini file locate where the php.ini is usually we can use phpinfo() to locate that  and copy it to the document root used by the domain which need custom php

Now change

 display_errors = On

in the custom php file.  It causes some security issue by turning on this

Thats all

No comments:

Post a Comment