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

Posted on in Categories Apache, Howto, lighttpd, Linux, php, Security, UNIX last updated March 28, 2016

PHP offers simple but effective solution to log all errors to a log fiie.
On all production web server you must turn off displaying error to end users via a web browser. Remember PHP gives out lots of information about path, database schema and all other sort 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”

Lighttpd: Beware of Default PHP Session Path Permission [ session.save_path ]

Posted on in Categories lighttpd, php, Squid caching server, Troubleshooting last updated February 1, 2011

Session support in PHP consists of a way to preserve certain data across subsequent accesses. This enables you to build more customized applications and increase the appeal of your web site.
Continue reading “Lighttpd: Beware of Default PHP Session Path Permission [ session.save_path ]”