iis7 want php to display errors

due to settings on a production iis7 windows server 2008


does not display errors

how to change the iis7 settings to display errors for a development website
Who is Participating?
GaryConnect With a Mentor Commented:
Just make sure you have Show friendly HTTP error disabled, Tools > Internet Options > Advanced and deselect the checkbox.
It maybe as simple as this.
In 'IIS manager' select your site in the left page tree, select Error Pages and click Edit Features and select detailed errors.
And remember the ini_set bit above.
Ray PaseurCommented:
Try these PHP settings:

ini_set('display_errors', TRUE);

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.
rgb192Author Commented:
no support because dedicated server with no control panel, I hid the errors somehow
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

What exactly are you getting? A blank page or is it ignoring the errors?

You may be interested in

It's probably fixed by

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

rgb192Author Commented:
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'
Ray PaseurConnect With a Mentor Commented:
no support because dedicated server with no control panel
That should not matter.  Please go back to this comment.  Copy the two lines of PHP code into a script that looks like this and run it to see what you get.  If you don't see an error message, get professional help with your setup.

ini_set('display_errors', TRUE);
trigger_error('Thud', E_USER_ERROR);

Open in new window

rgb192Author Commented:
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.
All Courses

From novice to tech pro — start learning today.