Is anybody here running PHP on IIS7?

Is anybody here running PHP on IIS7?

am 28.11.2007 16:37:41 von turnstyle

Hi all, I seem to be having some weird problems with PHP on IIS7, and
now I wonder -- is anybody here running PHP on IIS7?

Thanks! -Scott

Re: Is anybody here running PHP on IIS7?

am 28.11.2007 17:40:56 von christopher.e.franklin

On Nov 28, 7:37 am, turnstyle wrote:
> Hi all, I seem to be having some weird problems with PHP on IIS7, and
> now I wonder -- is anybody here running PHP on IIS7?
>
> Thanks! -Scott

I am. Do a search for the FastCGI Tech Preview which should take you
to iis.net downloads. Get the one for IIS7. Secondly, you need to
use the zip package of PHP. The Non-Thread safe version and the PECL
drivers. Then in a console where you unzipped fastcgi tyep fastcgi /
install then type fastcgi /add C:\php\php-cgi.exe PHP. That should do
it.

Re: Is anybody here running PHP on IIS7?

am 28.11.2007 17:48:41 von turnstyle

Thanks so much, mind if I tell you what I have so far?

I've downloaded the PHP 5.2.5 zip, unzipped it (into the inetpub) and
in IIS Manager assigned *.php to the PHP5isapi.dll.

And I can open a PHP page -- but, if I refresh the default application
pool (or wait for it to auto-refresh), I get a "IIS Worker Process has
stopped working" alert, and a crash in Event Viewer (but IIS continues
to work).

In other words, if I open a PHP page, when the app pool next
refreshes, I get the alert and crash.

Am I doing something wrong?

THANKS!

Re: Is anybody here running PHP on IIS7?

am 28.11.2007 23:06:17 von turnstyle

fwiw, I restored the PC to an earlier image -- just Vista, drivers,
IIS (with ISAPI and CGI on), and PHP.

I've unzipped PHP 5.2.5 into the inetpub folder (so it gets the
perms), and configured *.php to map to the php5isapi.dll

When I open a simple test.php page, it works.

When I open IIS Manager and click to recycle the application pool, I
get the "IIS Worker Process has stopped working" alert and the crash
in Event Viewer.

Am I missing something silly? Or is that what happens with PHP5 via
ISAPI in IIS7?

(thanks!)

Re: Is anybody here running PHP on IIS7?

am 06.01.2008 21:39:04 von christopher.e.franklin

On Nov 28 2007, 2:06=A0pm, turnstyle wrote:
> fwiw, I restored the PC to an earlier image -- just Vista, drivers,
> IIS (with ISAPI and CGI on), and PHP.
>
> I've unzipped PHP 5.2.5 into the inetpub folder (so it gets the
> perms), and configured *.php to map to the php5isapi.dll
>
> When I open a simple test.php page, it works.
>
> When I open IIS Manager and click to recycle the application pool, I
> get the "IIS Worker Process has stopped working" alert and the crash
> in Event Viewer.
>
> Am I missing something silly? Or is that what happens with PHP5 via
> ISAPI in IIS7?
>
> (thanks!)

Sorry it took so long to reply but, first off, you shouldn't be
putting your php installation under Inetpub. It should go to C:\php.
Second, you don't need to do any type of installation of ISAPI dll's
when using IIS if you are using the FastCGI preview for IIS7. All you
need to do is, unzip the FastCGI Preview to your desktop, open the
command prompt and cd into that folder and type fastcgi /install and
then type fastcgi /add C:\php\php-cgi.exe. That's all there is to it
and it will work. This is with a default installation of IIS7. The
only reason you would need to open the IIS manager going this route,
is to restart the server.