« Home | Change the Site Identifier in IIS » | When Terminal Services Sessions Are Full » | Capture a printer port in Windows XP » | Manage Outlook's Address Book » | Proliant ML330 Hard Drive Performance Boost » | Windows Environment Variables » | Fixing Outlook's Reminders » | Troubleshooting Firefox » | Reset Your iPod » | Mac Guide to Working with Exchange » 

Monday, March 27, 2006

Enable Windows PHP Logging to a File

When installing PHP under Windows, the default option is to not log errors. These are available to view from the console but obviously coded web pages will not display these. The solution is to enable logging in the php.ini file. To do that, edit php.ini and locate the line:
;error_log = filename
First uncomment this line by removing the semicolon. Then replace filename with the absolute path to the error file (ie- C:\logs\php-errors.log). Enclose the path in quotes when you have any spaces in the name. Restart web services for the change to take effect.

E-mail this post



Remember me (?)



All personal information that you provide here will be governed by the Privacy Policy of Blogger.com. More...

Add a comment