Solved

Problem installing PHP on IIS5.1

Posted on 2010-08-19
5
539 Views
Last Modified: 2013-12-13
I installed PHP 5.2.14 using Microsoft's Web Platform feature on my WIndows XP development machine. I am running IIS5.1 Everytime I try to browse a PHP page using localhost the file just wants to download, it won't display. Please help!
0
Comment
Question by:kenjpete
  • 3
  • 2
5 Comments
 
LVL 6

Expert Comment

by:Dangle79
ID: 33476146
you need to set up the mime type. the installer tends to fail to associate .php files with the engine.

http://www.iis-aid.com/articles/how_to_guides/installing_php_5_iis_5_simple_steps?page=0%2C2

page 3 of this document specifically
0
 

Author Comment

by:kenjpete
ID: 33476576
I checked the MIME type for .php and it was set to c:\windows\system32\inetsrv\fcgiext.dll. I changed it to c:\Program Files\PHP\php5.dll. But the same problem persisted? Do I have to restart or should I be using a different file for the MIME type?
0
 
LVL 6

Accepted Solution

by:
Dangle79 earned 500 total points
ID: 33476721
i point mine directly at php.exe
you need to make sure the execute permissions are set to scripts only and then you should restart IIS for good measure
0
 

Author Comment

by:kenjpete
ID: 33496970
I changed it to point to php.exe, set the permissions to scripts only and restarted IIS but it is still trying to download the index.php file? Any other ideas?
0
 

Author Comment

by:kenjpete
ID: 33497048
OOPS! Looks like I had permission set wrong....it is working now....thanks!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question