Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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

by kcott (Archbishop)
on Jan 20, 2020 at 07:44 UTC ( #11111626=note: print w/replies, xml ) Need Help??

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

G'day knox,

Welcome to the Monastery.

It's a very long time (15-20 years) since I had to do anything with Apache virtual hosts. Any knowledge that I might have retained may well be very out-of-date. I won't attempt to provide an answer; however, the following may be of some help.

Have a look at these documents (and follow links therein):

The httpd.conf file itself provides a lot of hints; although, as it says,

# Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are +unsure # consult the online docs. You have been warned.

Check the output in both the access and error logs. They may contain information that will allow you to resolve your problem. If they contain something you don't understand, post it here: "its not rending any of Perl Script" is not a particularly useful error report for us.

Check changes to configuration as appropriate for your platform. For me, using Cygwin, that's /usr/sbin/apachectl configtest; it's quite likely you'll need something different on Ubuntu. Also bounce (stop and restart) Apache after config changes.

You'll probably find it useful to set up aliases for your most common operations. Here's a few of mine; again, Ubuntu may be different.

alias apache_test='/usr/sbin/apachectl configtest' alias apache_down='/usr/sbin/apachectl stop' alias apache_up='/usr/sbin/apachectl start' alias apache_ps='ps -ef | grep http'

— Ken

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:13 UTC
    cheers Ken,

    I had to get re-aquainted with virtual hosts, so your suggestion was really helpful in eventually finding my mistake. I am on my laptop using this as a local test and completely forgot set up /etc/hosts file.

    I was just accessing everything via the full local url, eg I set up a virtual hosts with a proper server name locally ( eg projectsite.local ) then added this to my hosts file, it was all honky-dory. Part of my confusion was the assumption that mod_perl and mod_php work the same way - php works without having to set up a virtual host this way. But I found digging into virtual hosts a useful learning experience.

    thanks for your feedback, I lead me to the solution!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (1)
As of 2023-09-28 00:39 GMT
Find Nodes?
    Voting Booth?

    No recent polls found