httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sander Temme <scte...@apache.org>
Subject Re: [users@httpd] setting up and apache and php.
Date Sun, 25 Feb 2007 22:55:45 GMT

On Feb 25, 2007, at 1:51 PM, Steve R Burrus wrote:

> can anyone please tell me where the direcive goes in apache's  
> httpd.conf file :
>
> # configure the path to php.ini
> PHPIniDir "C:/php"

It can go absolutely anywhere in the configuration file.

> I am trying [again] to integrate apache with php and it is still  
> not the most intuitive thing for me to do I must admit!

I do the following four things:

LoadModule php5_module "d:/php-5.2.0/php5apache2_2.dll"
PHPIniDir "d:/myApacheServer/conf"
AddHandler php5-script php

DirectoryIndex index.html index.htm index.php

There should already be a DirectoryIndex directive in your  
configuration file, just add index.php to it if you want the  
index.php files to be considered for serving when the user requests  
a /directory/ on your server.

S. (wonder if we shouldn't include the AddHandler sample directives  
in the
     default httpd.conf, commented out)

-- 
sctemme@apache.org            http://www.temme.net/sander/
Open Source Software Consultant
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF

ApacheCon 2007 Europe Early Bird Rate extended through March 1!
http://www.eu.apachecon.com/




Mime
View raw message