Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Perl FCGI Error: mod_fcgid: error reading data from FastCGI server

by Anonymous Monk
on Jan 28, 2020 at 10:59 UTC ( [id://11111965]=note: print w/replies, xml ) Need Help??


in reply to Perl FCGI Error: mod_fcgid: error reading data from FastCGI server

I've managed to get CGI::Fast working, but I'd like to get FCGI working.

you just did; conveniences are convenient

In order to use CGI::Fast you'll need the FCGI module

I'd like to see an example of FCGI return $ENV vars

https://metacpan.org/source/ETHER/FCGI-0.79/eg/echo.pl

very basic question with FastCGI - as it keeps a persistent connection, whats the best way to temporarily test it?

test what?

https://metacpan.org/source/LEEJO/CGI-Fast-2.15/t/007_socket_perm.t

  • Comment on Re: Perl FCGI Error: mod_fcgid: error reading data from FastCGI server

Replies are listed 'Best First'.
Re^2: Perl FCGI Error: mod_fcgid: error reading data from FastCGI server
by knox (Sexton) on Jan 28, 2020 at 21:03 UTC

    Superb, thank you for the answers and all the examples - exactly what I needed to push me along for learning Perl, despite having a typo in my code.

    The socks example was exactly what i meant for testing, without saying succinctly what it was; the code example will be useful for my project.

    To clarify (for me, and for other new learners), CGI::Fast is a "wrapper" for FCGI module. The reason for trying FCGI was following the advice from https://metacpan.org/pod/CGI::Fast "CGI::Fast is based on CGI.pm it is no longer advised as a way to write Perl web apps". I am neutral on other's peoples use of CGI.pm, but as for myself, I want to move away from this module. I will acknowledge that CGI.pm has a great crash course in learning Perl.

    best, knox

        This helps put a new perspective on several questions I've had. I've been reluctant to dive into a frameworks because 1, its overkill for the project I am working on and 2, I want to be able understand code without a layer of abstraction.

        Recently, I've been involved with a Perl web project and really enjoying it. As someone new'ish to Perl, reading about CGI.pm online has been a can of worms, and I don't wish spark any animosity. However, by removing CGI.pm and not adapting frameworks (yet), it has forced me to look under the hood and learn Perl more deeply and has been rewarding. I've gleaned quite a bit just by inspecting the CGI.pm too. The threads you've provided give much food for thought, thank you.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11111965]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-26 04:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found