Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: LAMP and hosting: Convenient Perl solution, similar to PHP setup?

by TOD (Friar)
on Mar 12, 2008 at 05:27 UTC ( [id://673686]=note: print w/replies, xml ) Need Help??


in reply to LAMP and hosting: Convenient Perl solution, similar to PHP setup?

perhaps ePerl, and Parse::ePerl might be helpful for you. if you write a content handler based on these modules it should be achievable that users can just drop a page, and it will run.
--------------------------------
masses are the opiate for religion.

Replies are listed 'Best First'.
Re^2: LAMP and hosting: Convenient Perl solution, similar to PHP setup?
by Burak (Chaplain) on Mar 12, 2008 at 09:03 UTC
    You're suggesting a module from 10 years ago (latest release: 10 Jul 1998). I don't think it's suitable and in fact it looks like abandonware. And also mod_perl & mod_php do not work in the same way and since mod_perl can access Apache's internals, it is not suitable for sharad hosting AFAIK. I remember reading something about adding a less powerful (but suitable for shared hosting) mode of mod_perl but I don't think it happened yet.

    I suggest FastCGI if you're on LAMP and PerlEx (this became some sort of freeware and is bundled with ActivePerl, I'm not sure if it has limitations though) if you're under IIS. PerlEx also has some embedded template support (like ASP) too.
      Not true, there is no security issue with mod_perl that FastCGI doesn't also have. The biggest problems with running mod_perl on shared hosting are the need to restart apache to pick up module changes (there are workarounds like Apache::Reload) and the memory used, which is also the same as FastCGI. Nothing wrong with FastCGI though, and it does solve the restart issue if set up properly.

        Erm, FastCGI sets up persistent external processes; mod_perl allows you to execute code that calls (pretty much) any part of the Apache C API as well as muck with the perl interpreter state (of the particular child you're called from, but with that caveat complete access; just think of the mischief a malicious user could do rewriting other users' Apache::Registry-derived code). Also FastCGI processes can be run as completely separate users (via suexec), mod_perl code runs as the httpd user.

        Just those two things alone present some serious security implications in a multiuser situation (which is why you usually see suexec'd FastCGI used in shared hosting situations, and mod_perl when it's running your own iron).

        (Disclaimer: I haven't mucked with Apache 2 / m_p 2 sufficiently, but I don't believe they changed enough to eliminate the above issues.)

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

      Once you've achieved perfection you don't need any more releases. ;-)

      I've personally found ePerl to be great. While I prefer PHP now for any web work, ePerl gives perl the same ability as PHP to be included in webpages.

      You can also check out embperl, which is something newer and may be more to your liking.

        But it's not that property of PHP that he's jealous of. Quite the contrary: for most serious web developers, that's one of the things you really ought to avoid.

        What he wants is the other properties of PHP, like easy application deployment: for example, just drop in an archive for a Perl web application and just have it work. And proper separation of applications, so that they don't ever interfere with each other: neither by accident, nor on purpose (not everybody is trustworthy).

        Those are problems for which neither ePerl nor embperl offer a solution.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-03-28 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found