Привет всем
У меня проблема:
При настройке Apache с PHP я пишу:
AddType application/x-httpd-php .php
и
Action application/x-httpd-php /php/php.exe
И когда вызываю http://127.0.0.1/
получается ошибка 401, в error log идёт
[Thu Oct 31 23:52:13 2002] [error] [client 127.0.0.1] File does not exist: d:/Мои документы/g/php/php.exe/index.php
Когда я заменяю Action application/x-httpd-php /php/php.exe на Action
application/x-httpd-php c:/php/php.exe
получаю
[Thu Oct 31 23:53:02 2002] [error] [client 127.0.0.1] Invalid URI in request GET / HTTP/1.1
Я нашёл на http://www.faqts.com/knowledge_base/view.phtml/aid/5971/fid/31 вот что:
"Configuring PHP4 on Apache 1.3.11 Win98 SE, get error 400, Bad request..
Jan 22nd, 2001 12:51
Andrew Threlfall, Arnis Seene
In httpd.conf
Specify the ScriptAlias line with the path to php eg:
ScriptAlias /php/ "C:/apache/php/"
Then the application/x-httpd-php line should read something like:
Action application/x-httpd-php /php/php.exe
The problem occurs if you try to specify the full path in the Action
line (and use the alias), so a line like:
Action application/x-httpd-php c:/apache/php/php.exe
will screw up."
Но это мне не помогает....
В cgi-bin скрипты выполняются.
У меня win2k, apache/1.3.22, php/4.2.1
Илья Осадчий
=============================================================================
= Apache-Rus@xxxxxxxxxxxxx mailing list =
Mail "unsubscribe apache-rus" to majordomo@xxxxxxxxxxxxx if you want to quit.
= Archive avaliable at http://apache.lexa.ru/mail-archive =
"Russian Apache" includes software developed
by the Apache Group for use in the Apache HTTP server project
(http://www.apache.org/) See
Apache LICENSE.
Copyright (C) 1995-2001 The Apache Group. All rights reserved.
Copyright (C) 1996 Dm. Kryukov; Copyright (C)
1997-2009 Alex Tutubalin. Design (C) 1998 Max Smolev.