Jump to content

PHP download prompt problem


Recommended Posts

PHP: 5.2.5| Manually installed with zip

Apache: 2.2.8

 

I just installed Apache and PHP on my PC running Win.Vista... I've gone through many versions of both software and had the same issue im having now, I even went and bought a book and followed their instructions and am having the same issue.

 

Whenever I go to run the first test script phpinfo.php, my internet explorer prompts me to download the file instead of running its browser.  I tried it on Firefox and it will just ouput the code, instead of actually running it.

 

I'm assuming its some kind of permission problem, its the only thing that makes sense to me.

 

I added the lines to the httpd.conf file:

 

LoadModule php5_module "c:/php/php5apache2_2.dll"

AddType application/x-httpd-php .php

PHPIniDir "c:/php"

 

I created the php.ini file and copied the info from the recommended file

I reset apache

I deleted IE cookies

 

I have done everything its told me to do, I just can't get it to work

Link to comment
Share on other sites

  • 2 weeks later...

I hear it's a security flaw (bug) with Microsoft - alot of chatter on their forums about it but no one really giving specific details on a solution; many are going in and disabling security features - some solving the problem that way but not my recommendation as you need to know the effects of those changes before doing them.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.