500 Internal Server Error w/ PHP 5 and Vista

500 Internal Server Error w/ PHP 5 and Vista

am 04.10.2007 15:13:33 von BethH

Hello!

I'm developing a webpage locally. I originally started it on PHP 5
and XP (where it was working). We've recently changed my machine to a
dual boot with most of the important stuff on Vista, so I'm going
about getting the page up and working in Vista.

It will load the first page without issue, but if I try to get to the
second page (or any page other than 'index.php'), it throws a 500
error at me:

HTTP Error 500.0 - Internal Server Error

Description: The page cannot be displayed because an internal server
error has occurred.

Error Code: 0x00000000

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/cmm/home.php

Physical Path: C:\Code\Cleary\Marketing\home.php

Logon User: Anonymous

Logon Method: Anonymous

Handler: PHP

Here's what I've done:

php.ini is copied to the windows directory and permissions are set to
allow IUSR read and execute. The extension path inside php.ini is set
to "c:\program files\php\ext" (I had it installed to 'c:\php' in
XP). I've set up PHP as a handler in IIS. PHP is also set as an
ISAPI filter, with restrictions set to allow unspecified.

I've tried searching for this, but was unable to find any search
results that helped.

Any suggestions?

Re: 500 Internal Server Error w/ PHP 5 and Vista

am 05.10.2007 02:48:54 von James Barrett

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

BethH wrote:
> Hello!
>
> I'm developing a webpage locally. I originally started it on PHP 5
> and XP (where it was working). We've recently changed my machine to a
> dual boot with most of the important stuff on Vista, so I'm going
> about getting the page up and working in Vista.
>
> It will load the first page without issue, but if I try to get to the
> second page (or any page other than 'index.php'), it throws a 500
> error at me:
>
> HTTP Error 500.0 - Internal Server Error
>
> Description: The page cannot be displayed because an internal server
> error has occurred.
>
> Error Code: 0x00000000
>
> Notification: ExecuteRequestHandler
>
> Module: IsapiModule
>
> Requested URL: http://localhost:80/cmm/home.php
>
> Physical Path: C:\Code\Cleary\Marketing\home.php
>
> Logon User: Anonymous
>
> Logon Method: Anonymous
>
> Handler: PHP
>
> Here's what I've done:
>
> php.ini is copied to the windows directory and permissions are set to
> allow IUSR read and execute. The extension path inside php.ini is set
> to "c:\program files\php\ext" (I had it installed to 'c:\php' in
> XP). I've set up PHP as a handler in IIS. PHP is also set as an
> ISAPI filter, with restrictions set to allow unspecified.
>
> I've tried searching for this, but was unable to find any search
> results that helped.
>
> Any suggestions?
>
I have run into this a few times my self this week. More often than not
it has to do with the permissions on the file. I don't know if Vista is
doing something different than XP, but in Linux, a minumum of 755 was
necessary to stop the error (owner read/write/execute, user
read/execute, others read/execute). I think in one case while
transferring between Linux and Windows, the error was caused by a messed
up carriage return in the file (basically linux uses '\n' and windows
uses '\r\n', I use a program to re-write my files for each system before
I start testing)



Jim


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHBYn2QuDJiZ/QrH0RApKoAKDIzVTcDuPv2AxVGCEGPIr1iN6p4ACg lf3W
jVYqIZH8vCdlaSU4+NTg0tI=
=tHr3
-----END PGP SIGNATURE-----