Sotee
Read through this. Maybe it will help
I got Apache-PHP-W2K working but it had nothing to do with document root
as some had suggested. In fact, I cleared the doc_root variable in
php.ini and PHP still loads. Prior to these attempts, PHP would run
from the command line (php.exe -i)
Here's what I did in Apache's httpd.conf file ....
1. THIS IS MY ORIGINAL CONFIGURATION AND DOES NOT WORK
(note: first attempt: PHP installed in C:/Web_Dev/PHP/ and
there is no php4 directory)
ScriptAlias /php4/ "C:/Web_Dev/PHP/"
AddType application/x-httpd-php4 .php
Action application/x-httpd-php4 "C:/Web_Dev/PHP/php.exe"
- the explicit path in the 'Action' line doesn't make PHP run.
THIS DOES NOT WORK EITHER
ScriptAlias /php/ "c:/Web_Dev/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "c:/Web_Dev/php/php.exe"
- I think this one fails because the alias replaces the /php/ substring
in the 'Action' path so Apache tries to run
"c:/Web_Dev/c:/Web_Dev/php/php.exe"
THIS
ScriptAlias /php4/ "c:/Web_Dev/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/Web_Dev/php/php.exe"
GIVES THIS ERROR
The requested URL /Web_Dev/php/php.exe/info.php was not found on this
server.
THIS
ScriptAlias /php4/ "c:/Web_Dev/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "C:/Web_Dev/php/php.exe"
GIVES THIS (very familiar) ERROR
Invalid URI in request GET /info.php HTTP/1.1
THIS WORKS
ScriptAlias /php/ "c:/Web_Dev/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
AND JUST FOR GRINS, THIS WORKS (there is no foo directory anywhere)
ScriptAlias /foo/ "c:/Web_Dev/php/"
AddType application/x-httpd-foo .php
Action application/x-httpd-foo "/foo/php.exe"
BUT THIS DOES NOT WORK
ScriptAlias /foo/ "c:/Web_Dev/php/"
AddType application/x-httpd-foo .php
Action application/x-httpd-foo "c:/Web_Dev/php/php.exe"
- so it would seem it's all about the aliases replacing substrings as
well as avoiding an explicit c:/ path for the 'Action' line ...
p.s. also, download PHP 4.1.0 - the latest release
Regards,
:J
Sotee Loey wrote:
> Hi all;
>
> Could anyone help? I can not get apache and php to
> work under win2k. The apache is working fine except
> the php doesn't work at all. I have tried the cgi and
> module versions. I have tried all the recommended
> methods in the new group. I follow the installation
> manual that come with php but still it is not working.
> If any could help I appreciated. Thank in advance.
>
> I am able to get php to work with iis5 fine but I want
> to use apache instead of iis5.
>
> S-
>
> __________________________________________________
> Do You Yahoo!?
> Buy the perfect holiday gifts at Yahoo! Shopping.
> http://shopping.yahoo.com
>
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]