Imre Neuwirth wrote:
20080710 1438 GMT-6

> This is pretty straight forward.

> You have Apache working.
> I like to install php to c:\php.
> Put in the apache conf file where the php ini file is located,
> as well as the php extension, and you're done
>
> Wade
> 
> Thanks for your reply.  However, I am confused.  Currently,
the Apache "httpd.conf" file is located in "C:\Program Files\
Apache Software Foundation\Apache2.2\conf\" and  PHP is installed
in "C:\Program Files\PHP\" where the php.ini is also located.
Please clarify which file should be placed where, and what do
you mean by "as well as the php extension"?
> Thanks

20080710 1600 GMT-6

Im no longer on Windows (moved to Ubuntu some years back) but I thought
that php wasnt to be installed under Program Files as it had something
to do with the split between Program and Files in the name.

Well, for my own machines, I put php at C:\php.

Then put this in your apache.conf

# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/php"

After that, create a file called phpinfo.php
and in the file put

<?php
        phpinfo();
?>

Put it in your root directory and when you access it, if you cant see it then 
there is still a problem.

Wade

Reply via email to