|
Posted by joey.powell on 08/30/07 22:28
Hey guys,
I am trying to get PHP working on a Windows Vista Ultimate box running
IIS 7. First I made sure IIS was working properly....it is because it
serves up aspx (asp.net) pages (please don't hate!) with no problems.
I downloaded the MSI installer for PHP 5.2.3 and ran it. During the
installation I selected the web server as IIS ASAPI. Then afterwards
each time I tried to view my web page (from localhost, my box) I got
an IIS message stating that there was not a MIME type for php. So I
searched some Internet posts and found that I needed to add a MIME
type of "*.PHP" as "application/octet-stream". Afterwards the MIME
message went away, but my php code is still not being handled by PHP
on the server. I have a very simple webpage with an orange background
color and some simple text in an <? echo....?> code block. When I view
the page I see the orange background, but I see no text. When looking
at View | Page Source I can see that the <? echo...?> code block came
down from the web server just like that...it was never handled on the
server. After reading a bit more I added a Handler Mapping for ".php"
and ".php3" to IIS, and I answered "Yes" to add php as "Allowed" under
ISAPI and CGI restrictions.
After restarting IIS and even restarting the machine it still is not
working. I can still see the orange background, but the PHP code is
not being handled by PHP on the web server.
I have Windows Vista User Account Control turned off, and I have made
sure that "Everyone" has "Full Control" permissions on the PHP
installation folder and all of its subfolders. I am using an
Administrator account. Maybe the problem has something to do with
account being used by PHP???.??
Anyways, this seems like an awful lot of pain to go through to get it
working.
Guys how can I make it work? What am I doing wrong?
Navigation:
[Reply to this message]
|