Valer...@iengeo.de
unread,Jul 25, 2012, 5:12:24 PM7/25/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
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!