500 service error with PHP 5.2.11 on IIS

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
spazmo
Forum Newbie
Posts: 2
Joined: Sun Feb 14, 2010 7:13 am

500 service error with PHP 5.2.11 on IIS

Post by spazmo »

Hello!

I live in Maryland, and my Sys Admin is stuck in the snow without internet access, so I'm trying to fix a problem on the server myself with almost no experience with IIS servers (though I know Linus pretty well).

We're having a problem with a lot of PHP scripts returning a 500 Service Error when the browser hits the script.

We're runing Expression Engine and squirrel cart, which work fine. But, for example, when I go to the install.php script of one of the Squirrel cart modules we're trying to install, I get a 500 Service Error.

Any ideas how I can trouble shoot this?

Thanks!

-Spaz
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: 500 service error with PHP 5.2.11 on IIS

Post by Darhazer »

By default PHP 5.2 generates HTTP 500 response if there is a fatal error and display_errors is turned off. So first, try to turn on error_reporting and display_errors. If doesn't help, try opening one of the scripts that leads to such error in a text editor, and put in the beginning of the file:
<?php
phpinfo();exit;?>

And if it displays the page, the problem is in an error in the script.
spazmo
Forum Newbie
Posts: 2
Joined: Sun Feb 14, 2010 7:13 am

Re: 500 service error with PHP 5.2.11 on IIS

Post by spazmo »

Hello, Darhazer and thanks for the reply.

I added the phpinfo();exit; line and the script displayed just fine. So I guess it's a problem with the script.

display_errors was definitely the problem. Thanks a lot for your help!

-Spaz
Post Reply