Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging 500 Internal Server Error on PHP running on IIS7 cluster

Tags:

php

iis

iis-7

Recently my ISP switched our website to an IIS7.0 high availibility cluster. The website is running on PHP5.2.1 and I can only upload files (so no registry tweaks). I had tested the website before and everything seemed to be working, but now the checkout page fails with:

500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.

As error messages go, this isn't very informative. I've tried:

ini_set('display_errors', 1);
ini_set('error_log', $file_php_can_write_to );

but both don't seem to do anything.

Anyone know how to get better debugging output?

like image 317
Matthijs P Avatar asked Nov 08 '09 15:11

Matthijs P


2 Answers

Edit : Looks like we have a similar question in serverfault. Check it out

Turning off IIS7 custom errors will allow error responses from your application to be sent to remote clients without being censored by the IIS7’s custom errors module.

You can do this from the IIS7 Admin tool by running “Start>Run>inetmgr.exe”, selecting your website/application/virtual directory in the left-hand tree view, clicking on the “Error Pages” icon, clicking “Edit Feature Settings” action, and then selecting “Detailed Errors”

Source

like image 135
Shoban Avatar answered Sep 23 '22 20:09

Shoban


It's very common when you change server you cannot load your apps. I have solved this problem running php.exe instead of loading your apps on the browser:

1) Run it using the Command line > C:\php\php.exe OR

2) Run Windows Explorer, look for it, and double click on c:\php\php.exe.

3) You are gonna see what DLL's are having conflicts and causing the 500 error.

4) Solve the conflicts finding the right DLL's for your windows version and you should be able to see your apps through the browser.

The best of the lucks.

like image 39
RGA Avatar answered Sep 23 '22 20:09

RGA