Click to See Complete Forum and Search --> : PHP4+Apache1.3.9+Winblows NT4.0!!!


Anon
06-29-2000, 05:58 AM
hi all!
i am running Apache 1.3.9 on WinNT4.0 --> thats working fine.
I downloaded the PHP4 and installed it as was instructed in readme file. i do have php.ini in c:\winnt and also in c:\winnt\system32
---------------------
The changes i made to php.ini are:
include_path =
doc_root = d:\program files\apache group\apache\htdocs
user_dir =
;upload_tmp_dir =
upload_max_filesize = 2097152
extension_dir = d:\php

AND following libraries enabled:
extension=php_calendar.dll
extension=php_imap.dll
extension=php_ldap.dll
---------------------

Then i have the following additions to httpd.conf of Apache server for PHP:

ScriptAlias /php/ "D:/php/"
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php "D:/php/php.exe"
----------------------------

Now the problem is, when i try to run a simple PHP script, it gives me following error:

Bad Request
Your browser sent a request that this server could not understand.
Invalid URI in request GET /shianews/test.php3 HTTP/1.1

--------------

the test.php3 has the following contents:
<?php echo '<body>test</body>'; ?>


please if anyone can help me with this problem, i would really reaallyy reaalllyyyyy appreciate it :)

thanks,
Daarius....

Anon
06-29-2000, 07:45 AM
ScriptAlias /php/ \"D:/php/\"
Action application/x-httpd-php \"D:/php/php.exe\"

Translates to: Action application/x-httpd-php \"D:/D:/php/php.exe\"

So change the second line to: Action application/x-httpd-php \"/php/php.exe\"

Anon
06-29-2000, 08:55 AM
thank you soooo much .. its working fine now..
but i do remember that i once did try this before, and i couldnt see it working. may be becuase i downloaded the PHP4.0.1 and installed that before making the changes ...
but well who knows, anyway thanks a lot :)

regards,
Daarius...