Forum Webscript.Ru
Программирование => Perl => Тема начата: frenky от 24 Марта 2006, 18:49:52
-
FreeBSD
Apache 1.3
есть
AddModule mod_fastcgi.c
Addtype application/x-httpd-fcgi .fcgi .fpl
Скрипт запускаеться
#!/usr/bin/perl -w
use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser);
use FCGI;
$COUNTER = 0;
while (FCGI::accept >= 0) {
print header(-charset=>\'Windows-1251\');
print $COUNTER;
$COUNTER++;
}
но счетчик не изменяется
дописал в конфиге
FastCgiServer /home/fdm.kiev.ua/data/cgi-bin/fd/1.fpl -processes 2
в логах пишет
no such file or directory FASTCGI: failed to ceonnect to srver
-
Как установлен mod_fastcgi?
http://search.cpan.org/~lds/CGI.pm-3.17/CGI/Fast.pm
-
вот таким образом
/path/to/apache/bin/apxs -o mod_fastcgi.so -c *.c /path/to/apache/bin/apxs -i -a -n fastcgi mod_fastcgi.so
-
вобщем замучался я уже, дома на локал хосте поставил под винду а вот а сервере незнаю даже в чем проблема
-
конфиг аппача показать?
-
Это тоже не помогло:
# URIs that begin with /fcgi-bin/, are found in /var/www/fcgi-bin/
Alias /fcgi-bin/ /var/www/fcgi-bin/
# Anything in here is handled as a "dynamic" server if not defined as "static" or "external"
SetHandler fastcgi-script
Options +ExecCGI
# Anything with one of these extensions is handled as a "dynamic" server if not defined as
# "static" or "external". Note: "dynamic" servers require ExecCGI to be on in their directory.
AddHandler fastcgi-script .fcgi .fpl
# Start a "static" server at httpd initialization inside the scope of the SetHandler
FastCgiServer /var/www/fcgi-bin/echo -processes 5
# Start a "static" server at httpd initialization inside the scope of the AddHandler
FastCgiServer /var/www/htdocs/some/path/echo.fcgi
# Start a "static" server at httpd initialization outside the scope of the Set/AddHandler
FastCgiServer /var/www/htdocs/some/path/coolapp
SetHandler fastcgi-script
-
все , разобрался