I want the configuration files httpd.cond and php.ini fro win ME

vage78
vage78 used Ask the Experts™
on
Lets say that I want my php files be in
c:\phpweb directory
and c:\php\phpwin32 the php directory
and
c:\program files\apache group\apache2 the directory of my apache 2

How could be my httpd.conf and php.ini in order to check that my installation of php as cgi binary works good.
I have made a lots tests but it doesn't work correctly.
What can I do?
 
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Add the following lines to the httpd.conf

   ScriptAlias /php/ "c:/phpweb/"
   AddType application/x-httpd-php .php
   Action application/x-httpd-php "/php/phpwin32/php.exe"

In php.ini
change the include path to:

include_path = ".;c:\php\phpwin32\includes"

and doc_root to:

doc_root =c:\phpweb

hope this helps

bansidhar
sorry the ScriptAlias line should read like this

ScriptAlias /php/ "c:/php/phpwin32/"

bansidhar

Author

Commented:
I have heard that this way is very late. what can I do in order to work throught modules?
Thanks bansidhar
I have not felt much performance difference if the site is having small number of hits. Only for big sites with lot of hits this really makes the difference.

Ths ISAPI support to Apache2 is still an experimental version. So you have to try your luck.

To do this, you should move php4ts.dll to the windows/system directory. Then you should add the following three lines to your Apache

  conf file: (swap c:/php/ for your PHP install path)

   LoadModule php4_module c:/php/phpwin32/sapi/php4apache2.dll
   AddModule mod_php4.c
   AddType application/x-httpd-php .php

best of luck

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial