Re: [Comm] Apache и cgi

Alexandr =?iso-8859-1?q?mirus_=CE=C1_newmail=2Eru?=
Сб Ноя 15 23:24:18 MSK 2003


>A> Установил в ALT Linux Master 2.2 Apach, php, perl.
>A> Разкоментировал в httpd.conf:
>A> AddType application/x-httpd-php3 .php
>A> AddHandler cgi-script .cgi .pl
>A> Прописал в Vhosts.conf:
>A>
>A> ServerName mydomen
>A> DocumentRoot /home/www/mydomen/www
>A> ScriptAlias /cgi-bin/ /home/www/mydomen/cgi-bin/
>A>

>A> Сайт html, php работают, а на скриптах (cgi, pl) выскакивает ошибка:
>A> Internal Server Error
>A> The server encountered an internal error or misconfiguration and was
unable
>A> to complete your request.
>A> Please contact the server administrator, root на localhost.localdomain and
>A> inform them of the time the error occurred, and anything you might have
done
>A> that may have caused the error.
>A> More information about this error may be available in the server error
log.

>A> Что нужно еще настроить?

> на директорию ExecCGI дать

А как это делается?

В логах пишут:
В access_log:
192.168.66.12 - - [15/Nov/2003:23:14:34 +0300] "GET /cgi-bin/chat.cgi
HTTP/1.1" 500 611

В error_log:
[Sat Nov 15 23:10:25 2003] [alert] httpd: Could not determine the server's
fully qualified domain name, using 192.168.66.13 for ServerName
[Sat Nov 15 23:10:25 2003] [notice] Apache/1.3.27 (ALT Linux/alt13)
PHP/4.3.1-dev/ALT rus/PL30.16 configured -- resuming normal operations
[Sat Nov 15 23:10:25 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Sat Nov 15 23:10:25 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Sat Nov 15 23:14:34 2003] [error] (2)No such file or directory: exec of
/home/www/alex/cgi-bin/chat.cgi failed
[Sat Nov 15 23:14:34 2003] [error] [client 192.168.66.12] Premature end of
script headers: /home/www/alex/cgi-bin/chat.cgi




Подробная информация о списке рассылки community