PHP Log All Errors to a Log File to Get Detailed Information

in Categories Apache, Howto, lighttpd, Linux, php, Security, UNIX last updated August 23, 2017

PPHP offers a simple but effective solution to log all errors to a log file. On all production web server, you must turn off displaying an error to end users via a web browser. Remember PHP gives out lots of information about the path, database schema and all other sorts of sensitive information. You are strongly advised to use error logging in place of error displaying on production web sites. The idea is quite simple only developer should able to see PHP error log.
Continue reading “PHP Log All Errors to a Log File to Get Detailed Information”