You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by allan <la...@inet.uni2.dk> on 2001/05/27 21:49:22 UTC

getting started on mac osX - perl.conf

hello,

im trying to get started with mod_perl on macosX and have run into some
problems. hope someone can help with some of them.
im following the Stein/MacEachern book rather carefully ...

presently i am at the point where i need to load their small
startup-script which looks like this:
__________________
#!/usr/bin/perl -w
BEGIN {
	use Apache ();
	use lib Apache->server_root_relative('lib/perl')
}

use Apache::Registry ();
use Apache::Constants ();
use CGI qw(-compile :all);
use CGI::Carp ();
1;
_________________

1) according to the book there should be a perl.conf file where i should
add a couple of lines, however this file doesnt appear anywhere on my
system, why is that?

2) anyway if i run the script from the terminal i get a message saying i
forgot to load the Apache module - how can this be when i have a
perfectly running apache server and a seemingly properly build version
of mod_perl?

3) inside /usr/local/apache there is a conf directory containg different
configuration-files and other stuff- im not sure why they are there at
all when the one i use is placed inside /etc/httpd - again i guess that
perl.conf should be placed inside that conf directory?

4) is it not correct that the server root is /usr/local/apache
- or is it on macosX /library/webserver/documents or something similar?

thanks
allan