English 中文(简体)
Debugging 500 Internal Server Error on PHP running on IIS7 cluster
原标题:
  • 时间:2009-11-08 15:29:18
  •  标签:
  • 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?

最佳回答

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

问题回答

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:phpphp.exe OR

2) Run Windows Explorer, look for it, and double click on c:phpphp.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.





相关问题
Session Management with Windows Authentication

In an ASP.NET web app, using Integrated Windows Authentication, is the session tied to the windows identity? In other words, if I login (using IWA) to the app, and the app stores some "stuff" in my ...

Using Elmah with Cassini

Does anyone know if I can use Elmah with Visual Studio build-in web server(aka Cassini)? I get it working easily on IIS, but using same configuration, it doesn t work with Cassini. When I requested ...

Setting hostname in IIS, include www?

I want to set the hostname for a website I m adding in IIS 7, however do I include the www in the hostname or not? because I want both www.mysite.com and mysite.com both to point to mysite on the ...

inetpub versus any other folder

I ve run websites out of inetpub, as well as from folders just residing on the C: drive. I wonder, are there any definitive advantages to running websites out of inetputwwwroot?

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

热门标签