Apache on win2000 and PHP 4
| From: | Lukáš Moravec | Date: | Wed, 14 Aug 2002 21:09:00 +0000 |
| Subject: | Apache on win2000 and PHP 4 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-8128@lists.php.net to get a copy of this message | ||
Hi there,
I have a problem with apache for win2000 and PHP.
When I installed Apache, I tried to configure Apache. In Install manual
there are two ways :
First - inserting these lines into conf.file :
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
And setting a directive cgi.force_redirect to 1.
When I did it, I tested a javascript which is giving to script one =
variable (action="post", input name="variable") but script returned =
that this variable is not defined....
When I used other way the apache does not work but i do not know where
to insert these lines (in htconf)...
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
Same problem I had with IIS5 ... variables from any javascript form =
were not defined...
If you can help me ...do it please...
Moravec