Dear Monks

I'm trying to get my first fast cgi app running

fcgi_test.fcgi:
use CGI::Fast qw(:standard); $COUNTER = 0; while (new CGI::Fast) { print header; print start_html("Fast CGI Rocks"); print h1("Fast CGI Rocks"), "Invocation number ",b($COUNTER++), " PID ",b($$),".", hr; print end_html; }
The apache part looks like
LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so ScriptAlias /cgi-bin/ "/srv/perl/cgi-bin/" AddHandler fcgi-script .fcgi AddType application/x-httpd-fcgi .fcgi .... <VirtualHost *:80> ... <Directory /srv/perl/cgi-bin/> AllowOverride All <FilesMatch "\.fcgi$"> SetHandler cgi-script </FilesMatch> </Directory> ... </VirtaulHost>
Although the script runs fine, it doesn't count anything (its always zero). Also I cannot access things like $ENV{REMOTE_HOST}!

Any suggestions ?

Thnx
LuCa

UPDATE With the info provided below I was ablte to find the solutions
SetHandler fcgid-script
thnx again!!

In reply to fcgi script not working as expected (apache) by jeanluca

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.