Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

iis7 want php to display errors

due to settings on a production iis7 windows server 2008

php
error_reporting(E_ALL);

does not display errors


how to change the iis7 settings to display errors for a development website
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Try these PHP settings:

ini_set('display_errors', TRUE);
error_reporting(E_ALL);

If that does not get what you want, contact your hosting provider and ask them to set things up so you can see errors.  You may also want to consider setting up an error log.
Avatar of rgb192

ASKER

no support because dedicated server with no control panel, I hid the errors somehow
Avatar of Gary
What exactly are you getting? A blank page or is it ignoring the errors?

You may be interested in
http://phpmanager.codeplex.com/

It's probably fixed by

C:\windows\system32\inetsrv>appcmd.exe set config "<your site name>" -section:system.webServer/httpErrors /existingResponse:"PassThrough"  

http://forums.iis.net/t/1172537.aspx
Avatar of rgb192

ASKER

C:\windows\system32\inetsrv>appcmd.exe set config "<your site name>" -section:system.webServer/httpErrors /existingResponse:"PassThrough"  

I can not do the commands. Is there a button I could press in iis7 manager?

On a browser, I see '500 error'
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

Cathal
detailed errors is what I asked for.
There were alot of 'details' but no relevant information about php error.

Ray's trigger error looked the same before and after 'detailed errors'.  I saw a real php error.

Thanks both.