Jump to content

Recommended Posts

I am new to php and I've been trying to install PHP 5.2.9-2 zip package  and Apache 2.2 under Windows Vista. So I get Apache server to run and when I try http://localhost/ on my browser I get It works! , however when I create a php file and try to see it on the browser for example I typed http://localhost/first.php and I get a file download window that asks me if I want to open or save the file, when I click on open I get another window of the browser open with the same file download window. Also on the title of the page it says HTTP 404 Not found. I followed all the installation process and modified the http.conf file. Pls help me out with this...

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/156363-installation-problem-with-php/
Share on other sites

it's a while since I set my laptop up (vista=nightmare) but I do remember:

in httpd.conf

 

line 117 reads: LoadModule php5_module "c:/php/php5apache2_2.dll"

 

line 119 reads:AddType application/x-httpd-php .php

 

and you must also:

# configure the path to php.ini

PHPIniDir "C:/php"

 

line 406 is:

    ScriptAlias /php/ "C:/php/"

    AddType application/x-httpd-php .php .php5

    Action application/x-httpd-php "/php/php-cgi.exe"

    SetEnv PHPRC "C:/php"

 

check those

 

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.