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

Re^2: CGI or CGI::Fast

by Anonymous Monk
on Sep 10, 2012 at 07:30 UTC ( #992691=note: print w/replies, xml ) Need Help??

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

I came across Plack while googling for FCGI, but have yet to read more about it. I've code that runs on Perl's CGI, and I naively thought that I could switch to CGI::Fast by just installing the module and FCGI - since both are listed as installed on the shared server. Apparently, however, it's not just these two modules but also the fastcgi engine, which is not available.

Replies are listed 'Best First'.
Re^3: CGI or CGI::Fast
by sundialsvc4 (Abbot) on Sep 10, 2012 at 12:59 UTC

    Plack is, of course, an interface layer ... it provides a simple, consistent interface for you to write to, and then a set of personality-modules which you select according to the environment.   (One of those is, “ordinary CGI.”)   If your hosting service does not and cannot provide FastCGI, and the omission is business-important for you, just move to a different provider and change where your DNS entry goes. . .

    But remember that it might not actually matter.   Most operating systems are “lazy” about getting rid of recently-used code segments, in anticipation that the same programs are often used repeatedly.   (The notion of “locality of reference” also has a corollary with regard to which programs are being requested.)

      Thanks, sundialsvc4!

      It's shared hosting, which I think is the norm not to allow FastCGI.

      I could opt for the VPS, but that's substantially more expensive than shared hosting and isn't a viable option.

      I read up about Plack a little and found it to be quite abstract and I'm not immediately clear how it can help in my case - which is to move from ordinary CGI to faster CGI. Plack might not even be an option in a shared hosting environment, just like FastCGI.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992691]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2018-07-16 03:18 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (330 votes). Check out past polls.