|Pathologically Eclectic Rubbish Lister|
Re: How to configure mod_perl?by martell (Hermit)
|on Jun 17, 2011 at 21:48 UTC||Need Help??|
I've got a working mod_perl installation on Ubuntu 10.O4. I've done the following things to get it working.
First i've created a file "/etc/apache2/site-available/yoursite" with following configuration:"
Note that i create a virtual host with a given name. To make sure that the site is visible, add a following line in your "/etc/hosts":
Now create the directory "/var/www/yoursite", make sure it is readable by user "www-data", and create a file "test.pl" with following content:
Note i've removed the "$r->send_http_header" line. It is not a valid method anymore under mod_perl2.
Restart your apache server.
This should give, when going to "http://yoursite/perl.pl", the text "mod_perl rules!".
Hope this helps.