I have looked through the various questions on php error reporting on iis7 but have not been able to solve my problem.
I have error reporting turned off in my php ini file, (a lot of sites on this server were transferred from IIS 6 and these sites were producing warnings etc)
I really need to turn on error reporting on a per site basis, i looked at this thread: How to get useful error messages in PHP? i have tried adding to the .htaccess:
# PHP error handling for development servers
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_flag log_errors on
php_flag ignore_repeated_errors off
php_flag ignore_repeated_source off
php_flag report_memleaks on
php_flag track_errors on
php_value docref_root 0
php_value docref_ext 0
php_value error_log \inetpub\vhosts\camerich.co.uk\subdomains\2012\httpdocs\PHP_errors.log
php_value error_reporting 999999999
php_value error_reporting -1
php_value log_errors_max_len 0
<Files PHP_errors.log>
Order allow,deny
Deny from all
Satisfy All
</Files>
And added to my php file: error_reporting(E_ALL); ini_set('display_errors', '1');
i am still not getting any errors displayed just error 500 internal server error. if i browse the site while logged on too the server through remote desktop connection i do get the errors, but for clients developing sites i obviously dont want to give them root access to the server to view these errors.
is there something i am missing? so my questions are:
are the steps i have detailed above correct? (i am using helicon ape)
after changing the htaccess do i have to restart iis7 or is just restarting the site enough?
no log file is generated either, is the path to the logfile to include the full path including the drive letter? or if not what should be the path for example say i my website in this folder: D:\inetpub\vhosts\mydomain\subdomains\2012\httpdocs what should i put in as the path to the logfile.
appreciate any help on this thanks for taking the time to read my problem.