Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Please Help Me - PHP Installation
August 30, 2007, 10:28 pm
rate this thread
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
Guys how can I make it work? What am I doing wrong?
Re: Please Help Me - PHP Installation
: running IIS 7...
: I have a very simple webpage with an orange background color and
: some simple text in an <? echo....?> code block.
Use <?php as the start delimiter and ?> as the terminating delimiter.
XML uses "<?" ((X)HTML syntax). So you are better off with "<?php"
as the starting delimiter for PHP. The later versions of PHP use the "<?php"
by default, I just don't know the specifics on which version does what.
North Carolina Swimming Pool Builders