Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by Your Mother (Archbishop)
on Jan 29, 2020 at 15:25 UTC ( #11112019=note: print w/replies, xml ) Need Help??


in reply to Re^4: Perl FCGI Error: mod_fcgid: error reading data from FastCGI server
in thread Perl FCGI Error: mod_fcgid: error reading data from FastCGI server

I think for a new programmer with some understanding of HTTP, Mojolicious is probably easier to learn, definitely easier to write, and an altogether superior toolkit to any of the F?CGI:: family. I like CGI.pm for what it is and I wrote thousands of scripts/CGIs with it. I would never use it again except for certain kinds of testing and quick HTML templating.

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

Replies are listed 'Best First'.
Re^6: Perl FCGI Error: mod_fcgid: error reading data from FastCGI server
by knox (Sexton) on Jan 29, 2020 at 17:27 UTC

    Thank you. I've read good things about Dancer as well. From your experience, Would you say that Mojolicious is the best framework for FCGI?

    As an aside, I am not necessary a new programmer, just rusty. I developed PHP years ago, then moved into other areas of tech. Outside of a little bit of python, lua, and javascript, I've done very little programming for nearly 8 years. I recently had project that Perl was the perfect fit, and I became hooked. I never realised the vastness of cpan and 'usefulliness' of Perl, so its made diving back into programming fun again. This particular board has been useful for when I am stuck, and when I am very stuck, the responses have been very quick!

      Lots of devs like Dancer2. I am not one of them. :P My expertise is Catalyst but it’s a terrible thing to recommend to someone just starting out and I’m using it less frequently all the time. Mojolicious::Lite is super easy to jump into. As far as FastCGI, I would recommend against it, pretty strongly. It has no benefit over other application persistence layers, far, far fewer features, and depending on deployment, it has some drawbacks; like requiring a webserver restart to pick up new code, or making forking impossible/tricky. I only use uWSGI when I have the ability to choose for myself. I am using Catalyst over FCGI and a custom app server + CGI.pm at work but not by choice. I also strongly recommend nginx over apache at this point in the game.

        thank you.

        From your comments, if learning time was not issue, would you recommend uWSGI over Catalyst and Mojolicious::Lite? Current project is more of a 'hobby project' so no one is breathing down my neck. I am trying to get a grasp of best way of doing Perl on the web for 2020. I have not read about uWSGI yet, so I will do some research on this.

        My understanding (please correct if I am wrong) after reading most the ways the ways to write webapps in Perl (eg mod_perl, cgi, fcgi, FastCGI), is that PSGI allows for any of those methods to be deployed, and code remains portable as long as it uses PSGI? Is this much different from uWSGI?

        it has some drawbacks; like requiring a webserver restart to pick up new code - yes, I found this out the hard way yesterday...grrr

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2023-10-01 04:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?