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

Re: fastcgi without the module

by Fletch (Bishop)
on Dec 01, 2020 at 22:02 UTC ( [id://11124489]=note: print w/replies, xml ) Need Help??


in reply to fastcgi without the module

FastCGI is (I believe; slightly rusty but going from memory) a C library implementing its API that lets a web server (e.g. mod_fcgi in apache) start up a persistent process which it will send requests to for handling. Theoretically one could write your own implementation of the API in perl (there's Net::FastCGI on CPAN, but I have no experience with it and since it looks that module hasn't been updated in 7 years . . .), but if your perl install is so stripped down (one might even say crippled) that it doesn't have strict you're probably not going to have a good time of it.

What I'd try would be seeing if you can instal a more complete perl (a quick googling shows OpenWRT splits perl into an extremely strangely large number of subpackages so keep adding those) and the C FastCGI library and try installing the normal FCGI module from CPAN then.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: fastcgi without the module
by morgon (Priest) on Dec 01, 2020 at 23:23 UTC
    I have strict, what I meant is that you need to install an extra package to get it. Everything is split into tiny packages and often the dependencies are not properly reflected.

    I may try to get cpan to work but probably I cannot really be bothered too much as for the little think I want to do cgi would be good enough...

      Aaah; I misunderstood / read that as you were trying to make do without all of the bits. In that case then Mojolicious and I'm sure the other frameworks like Dancer2 usually come with their own http server implementations (Plack mentioned above too) which will run your application (and to some degree also serve flat files) directly which would eliminate the need to run apache (or lighttpd or . . .) with fastcgi. That might be another route to look into.

      The cake is a lie.
      The cake is a lie.
      The cake is a lie.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-03-28 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found