Jump to content

[SOLVED] PHP not installing hmph


Recommended Posts

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?

Link to comment
Share on other sites

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.

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.