Apache Exchange for IIS: How to Display Errors

2

I have a fairly basic web page (type a questionnaire), in which it stores the information in a MySql database.

While it was allocated in Apache (provided by xampp) was working, now that I went to an IIS server the part of the post stopped working.

The stream is:

Question.html > post method - > insert.php - > End.html

- I already installed php and it is working (I tried with the function <?php phpinfo(); ?> in the root and it works)

Do I need to configure anything else?

How can I debug to properly verify the error? The only result I can see is that the server is down ...

IIS logs (last 4):

2017-01-12 16:35:35 ::1 GET /survey/fonts/roboto/Roboto-Medium.ttf - 80 - ::1 Mozilla/5.0+(Windows+NT+6.3;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko http://localhost/survey/ 404 0 2 1
2017-01-12 16:35:35 ::1 GET /survey/fonts/roboto/Roboto-Light.ttf - 80 - ::1 Mozilla/5.0+(Windows+NT+6.3;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko http://localhost/survey/ 404 0 2 0
2017-01-12 16:35:35 ::1 GET /survey/fonts/roboto/Roboto-Regular.ttf - 80 - ::1 Mozilla/5.0+(Windows+NT+6.3;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko http://localhost/survey/ 404 0 2 0
2017-01-12 16:36:01 ::1 POST /survey/insert.php - 80 - ::1 Mozilla/5.0+(Windows+NT+6.3;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko http://localhost/survey/ 500 0 0 2069
    
asked by anonymous 12.01.2017 / 17:05

1 answer

2

First, make sure PHP issues the errors by including these two lines in your code:

error_reporting(E_ALL); 
ini_set("display_errors", 1);

Make sure that no code (from a framework, for example) undoes this later!

If errors still do not appear, check your IIS settings. In the error page options, you enable the "detailed errors" or "detailed errors in local requests" mode.

    
12.01.2017 / 19:02