Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
IIS7 doesn't call php-cgi?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
valeria...@iengeo.de  
View profile  
 More options Jul 25 2012, 5:12 pm
Newsgroups: comp.infosystems.www.servers.ms-windows
From: Valeria...@iengeo.de
Date: Wed, 25 Jul 2012 14:12:24 -0700 (PDT)
Local: Wed, Jul 25 2012 5:12 pm
Subject: IIS7 doesn't call php-cgi?
Hi, everybody,

I'm trying to set up PHP on a Windows 2008 server with IIS7, but for some
reason the web server sends out the uninterpreted php source code. Here's
what I did so far:

* downloaded PHP and installed it in C:\PHP\
* added the "CGI" role service to the IIS role
* prepared a php.ini in C:\PHP\
* set up a handler mapping *.php in IIS as a fast-cgi module pointing to
  C:\PHP\php-cgi.exe
* used the icacls to grant access to the C:\PHP\ and C:\inetpub\wwwroot\
  to user IUSR [(OI)(CI)(M)]
* added C:\PHP\ to the server's PATH variable
* added permission for C:\PHP\php5.dll into ISS's "ISAPI and CGI Restrictions"
* tested the PHP by manually calling "C:\PHP\php-cgi < info.php > test.html"
  and verifying that test.html displays the desired result. (The file
  info.php contains the usual "<?php phpinfo(); ?>" command.)

I can http-access files from the web server. Calling up a PHP file only displays the PHP source code, though, so for some reason IIS doesn't invoke
php-cgi (or ignores its output).

Did I forget something? Any tips how I could get the system to process my PHP files? Thank you for any suggestions!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »