Jump to content

installation problem with php


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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.