"Flemming Joensson" <joensson@fjerndette.cs.auc.dk> skrev
<SNIP>
>
> Så vidt jeg ved er PHP support i Apache 2 kun experimental stadigvæk.
> Jeg kører selv med nyeste 1.3 udgave og har ingen problemer. Mener bare
> at jeg fulgte vejledningen i den medfølgende readme og så virkede det
> i første forsøg.
Og du har ganske ret. Det virker på Apache 1.3! Jeg fandt desuden følgende i
installation.txt:
----------
Now that version 4.1 introduces a safer sapi module, we recommend
that you configure PHP as a module in Apache.
To do this, you should move php4ts.dll to the windows/system (for Windows
9x/Me)
or winnt/system32 (for Windows NT/2000/XP) directory, overwriting any
older file. 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/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
If you wish to install PHP as a CGI binary, (the sapi is much better)
you need to enable the apache security fix in your php.ini by
setting cgi.force_redirect = 1. Then, insert these lines to your conf file:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
------------
Der var svaret på det hele jo...
Mvh.
Brian Thomsen