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
500 service error with PHP 5.2.11 on IIS
Moderator: General Moderators
Re: 500 service error with PHP 5.2.11 on IIS
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.
<?php
phpinfo();exit;?>
And if it displays the page, the problem is in an error in the script.
Re: 500 service error with PHP 5.2.11 on IIS
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
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