{"id":437,"date":"2013-04-30T16:25:00","date_gmt":"2013-04-30T16:25:00","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=437"},"modified":"2022-11-05T10:53:19","modified_gmt":"2022-11-05T10:53:19","slug":"enabling-iis-7-5-and-php-errors-on-windows-2008-server-r2","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=437","title":{"rendered":"Enabling IIS 7.5 and PHP Errors on Windows 2008 Server R2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This is a bit of a pain to enable, but you need to follow these steps to do it:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>IIS PHP Manager<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open IIS Manager, click on the server node, then click on &#8220;PHP Manager&#8221; assuming you have installed PHP using the Web Platform Installer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now click on &#8220;Configure Error Reporting&#8221; link, set the type of PHP Error Reporting: &#8220;Development Machine&#8221;&nbsp; and set the error log file to valid location, the default is normally good enough.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>IIS Configuration Editor<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">system.WebServer\/httpErrors<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">errorMode &#8211; &#8220;DetailedLocalOnly&#8221; Change To: &#8220;Detailed&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">existingResponse &#8211; &#8220;Auto&#8221; Change To: &#8220;PassThrough&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>PHP settings<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">display_errors = On<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">log_errors = On<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">error_reporting = E_ALL | E_STRICT<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then restart IIS to commit the changes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Workstation Settings<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In your browser you may need to untick &#8220;Show friendly HTTP Error messages&#8221; under the Internet Options-&gt;Advanced tab.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/blogs.msdn.com\/b\/ieinternals\/archive\/2010\/08\/19\/http-error-pages-in-internet-explorer.aspx\">http:\/\/blogs.msdn.com\/b\/ieinternals\/archive\/2010\/08\/19\/http-error-pages-in-internet-explorer.aspx<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Tracing and Troubleshooting Failed Requests Using Tracing in IIS 7<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/www.iis.net\/learn\/troubleshoot\/using-failed-request-tracing\/troubleshooting-failed-requests-using-tracing-in-iis\">http:\/\/www.iis.net\/learn\/troubleshoot\/using-failed-request-tracing\/troubleshooting-failed-requests-using-tracing-in-iis<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a bit of a pain to enable, but you need to follow these steps to do it: IIS PHP Manager Open IIS Manager, click on the server node, then click on &#8220;PHP Manager&#8221; assuming you have installed PHP using the Web Platform Installer. Now click on &#8220;Configure Error Reporting&#8221; link, set the type &#8230; <a title=\"Enabling IIS 7.5 and PHP Errors on Windows 2008 Server R2\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=437\" aria-label=\"Read more about Enabling IIS 7.5 and PHP Errors on Windows 2008 Server R2\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-437","post","type-post","status-publish","format-standard","hentry","category-microsoft-windows"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=437"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/437\/revisions"}],"predecessor-version":[{"id":1490,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/437\/revisions\/1490"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}