Hey, get this.. I have a fully functional Apache 2.0.43 and PHP 4.2.3
running on Win2k.  But you are right about the module approach not
working... I had to give up on this.

I set it so that PHP.exe is executed as a cgi when the relevant file
extensions are requested from Apache.

Add these lines to your httpd.conf file:

ScriptAlias /php/ "C:/PHP/"
(change to your PHP path, i.e. the location of php.exe)

AddType application/x-httpd-php .phtml .php .php3

Action application/x-httpd-php /php/php.exe


And that should do it.  There are security issues with this approach, but
aren't there always?


"Aaron Wolski" <[EMAIL PROTECTED]> wrote in message
news:000301c27aa0$56929c00$0401a8c0@;aaron...
> A hope and a prayer - that's what you need.
>
> I hear it IS possible but hell if I know how. I tried for daaays to
> figure this out when I didn't have any time to do so. Said screw it and
> when with Apache 1.3X and guess what? Worked right off the bat.
>
> That's my suggestion to you if you wanan save yourself some trouble.
>
> From my understanding, apache 2.X is not stable with PHP right now.
>
> Aaron
>
> -----Original Message-----
> From: Billy Kendall [mailto:billykendall@;hotmail.com]
> Sent: Wednesday, October 23, 2002 10:28 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] Apache 2.0.43/PHP 4.2.3/Win XP Pro
>
>
> I have installed Apache 2.0.43 on Windows XP Professional SP1 and I am
> trying to get PHP 4.2.3 to run.  I added the following lines to my
> httpd.conf file:
>
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddModule mod_php4.c
> AddType application/x-httpd-php .php
>
> but I am receiving the following errors when trying to restart Apache:
>
> Cannot load C:/php/sapi/php4apache.dll into server: The specified module
> could not be found.
>
> Are there other changes that must be made to the httpd.conf to enable
> PHP?
>
> ____________
> BILLY KENDALL
> Cell: 214.334.3633
> Fax: 703.935.7804
> E-Mail: [EMAIL PROTECTED]
> Web: http://www.billykendall.com
>
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to