Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: configuring mod_perl on Apache2.4 (conf & virtual host help)?

by 1nickt (Canon)
on Jan 20, 2020 at 15:34 UTC ( #11111633=note: print w/replies, xml ) Need Help??

in reply to configuring mod_perl on Apache2.4 (conf & virtual host help)?

Hi, as stated above the Apache2 + mod_perl approach to serving web content generated by your Perl script is *very* outdated. If you are setting up a server in a new environment, or a new app in an existing server environment, I'd recommend against that framework unless there is some specific reason why it must be used.

I used Apache + mod_perl for years, but haven't used it for more years. For a simple, intuitive, modern Perlish approach I'd recommend setting up a lightweight Perl Dancer app. Here is the Dancer2 deployment guide including instructions for running under Apache if that's your production web server. Try it; you'll be serving requests with your code before you figure out that VHost mod_perl config :-)

Hope this helps!

The way forward always starts with a minimal test.
  • Comment on Re: configuring mod_perl on Apache2.4 (conf & virtual host help)?

Replies are listed 'Best First'.
Re^2: configuring mod_perl on Apache2.4 (conf & virtual host help)?
by knox (Sexton) on Jan 20, 2020 at 19:58 UTC

    Very helpful! It became apparent trying to find solutions for getting mod_perl installed it seemed outdated. I was aware of Dancer, Mojolicious, as well as Plack. I just had a fairly simple script, so I thought that a framework might be overkill for the size of this project. I will check out Dancer, I've only read good things about it, so thanks for the recommendation!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2023-09-24 20:48 GMT
Find Nodes?
    Voting Booth?

    No recent polls found