Lokolo Posted September 7, 2007 Share Posted September 7, 2007 I am on Vista by the way, just before I explain the problem. ok so I have installed Apache 2.2.4 and this all works (I can get onto http://localhost and it says "It works"). Now I am trying to install PHP 5.2.4 and I put everything correctly to my knowledge, however, at the end of the installation it did say there was a script missing, which is what I was thinking is the problem, so I cannot load PHP files. From a few installation tutorials it seems the PHP should add something to the httpd.conf but I am not sure what, the "Load" thing but I am not sure what the actual command is. Also I have 2x httpd.exe processes running, is this right? (ones 1,856k, the other 4,388k) So anyone could help? Quote Link to comment https://forums.phpfreaks.com/topic/68421-solved-php-not-installing-hmph/ Share on other sites More sharing options...
wildteen88 Posted September 8, 2007 Share Posted September 8, 2007 uninstall PHP from the installer. Then just download the zip binaries package from php.net rather than using the installer. Extract the contents of the zip to C:/php. Open up Apaches configuration file (httpd.conf) default path is something like C:/Program Files/Apache Foundation/Apache2.2/conf Add the following lines: # PHP5 LoadModule php5_module "C:/php/php5apache2_2.dll" PHPIniDir "C:/php" After the following line: #LoadModule ssl_module modules/mod_ssl.so Then scroll down and find the following line: AddType application/x-gzip .gz .tgz And then add the following after the above line: # PHP5 AddType application/x-httpd-php .php Save the httpd.conf and restart Apache. Open up notepad and type the following: <?php phpinfo(); ?> Save the following as test.php and save it to the following path: C:/Program Files/Apache Foundation/Apache2.2/htdocs (note: you can delete all existing files in this folder if you wish). Open up your web browser and go to http://localhost/test.php you should now see a page showing information about PHP. Apache is now configured to parse PHP scripts. Quote Link to comment https://forums.phpfreaks.com/topic/68421-solved-php-not-installing-hmph/#findComment-344184 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.