http://www.perlmonks.org?node_id=992473


in reply to Re: CGI or CGI::Fast
in thread CGI or CGI::Fast

I ran a small test on the server using "CGI::Fast qw(:standard);", the page was correctly displayed. So I assume that means FCGI is installed?

Replies are listed 'Best First'.
Re^3: CGI or CGI::Fast
by CountZero (Bishop) on Sep 08, 2012 at 11:59 UTC
    Below FCGI lives the actual Fast CGI engine in your server. I do not know what FCGI does when there is no such engine in the server. Anything between degrading gracefully to the "normal" CGI protocol and crashing loudly is possible.

    Ask your sysadmin if he has mod_fastcgi (when your server is Apache) active in your (virtual) server.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics

      Ah I see. So even if the script runs with "CGI::Fast", it doesn't mean that mod_fastcgi is installed?

      Is there a variable from CGI::Fast that one can use for testing the presence or absence of the engine?

        Honestly, I do not know. I do not have a mod_fastcgi enabled Apache server running here now.

        Try your friendly sysadmin.

        CountZero

        A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

        My blog: Imperial Deltronics

        Ok, many thanks CountZero!