Mobile app version of vmapp.org
Login or Join
Karen161

: How to set site specific Error Log files in PHP under IIS On Apache, vhosts can be configured with their own error log file, like so: ErrorLog "my-site-log-dir/error_log.log" How would this

@Karen161

Posted in: #ErrorReporting #Iis #Php

On Apache, vhosts can be configured with their own error log file, like so:

ErrorLog "my-site-log-dir/error_log.log"


How would this be done when hosting PHP under IIS?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Karen161

1 Comments

Sorted by latest first Latest Oldest Best

 

@Turnbaugh106

SOURCE

To report errors in the Event viewer, go to your php.ini and make sure
logging is on.

log_errors = On

then enable error_log to write to syslog (with is the Event Viewer on
Windows machines)

error_log = syslog

www.iis-aid.com/articles/how_to_guides/logging_php_to_windows_event_log

If using 'shared' hosting windows hosting then you most likely have a control panel that should have some kind of logging, otherwise see method above.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme