reofi Posted May 1, 2009 Share Posted May 1, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/156363-installation-problem-with-php/ Share on other sites More sharing options...
harristweed Posted May 1, 2009 Share Posted May 1, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/156363-installation-problem-with-php/#findComment-823309 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.