Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: LAMP With Perl

  1. #11
    Join Date
    Oct 2007
    Beans
    24
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: LAMP With Perl

    ankursethi, you area golden god! I would thank you (formally) if I could, but I can't find a ribbon.

    Let me be specific. This gets my perl working:
    PHP Code:
    <Files "\.(pl|cgi)$">
        
    SetHandler perl-script
        PerlResponseHandler ModPerl
    ::PerlRun
        Options 
    +ExecCGI
        PerlSendHeader On
    </Files
    Thank you thank you thank you!

    Problem is, as you may have guessed, this is not the most secure thing. If somebody managed to get a malicious perl script onto your system, they would be able to run it without much trouble simply by navigating to it with their browser.

    For my part, I would love to set up a perl CGI. Problem is, I can't figure out how. I think it should be really simple, but I've spent the past 2 hours unsuccessfully looking. Your directive is the first one that gets any perl working for me.

    Why is this not automatically set up with the mod_perl deb? Unless my memory fails me, PHP worked out-of-the box.

  2. #12
    Join Date
    Mar 2005
    Location
    Ohio, USA
    Beans
    61
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: LAMP With Perl

    resurrected from long slumber...

    If you are writing new Perl based web scripts, you should strongly look at CGI::Fast

  3. #13
    Join Date
    Jan 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: LAMP With Perl

    look into Mason (HTML::Mason), it is a very nice templating framework for Perl (I prefer it over CGI based stuff).
    I am infallible, you should know that by now.
    "My favorite language is call STAR. It's extremely concise. It has exactly one verb '*', which does exactly what I want at the moment." --Larry Wall
    (02:15:31 PM) ***TimToady and snake oil go way back...
    42 lines of Perl - SHI - Home Site

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •