Hi there,
On 3 Jan 2000, Fernando Rowies wrote:
> >From example 4.1 of the eagle book.
> I don't understand in which directory I need to put the file Footer.pm and the
> html files that where affected by this module. I configured httpd.conf with:
> <Location /footer>
> SetHandler perl-script
> PerlHandler Apache::Footer
> </Location>
Your configuration file tells Apache to process files in the directory
`footer' and its subdirectories with the handler in Apache/Footer.pm.
The directory `footer' is in your document root directory, so if your
document root is
/usr/local/apache/htdocs
then your `footer' directory is
/usr/local/apache/htdocs/footer
Footer.pm can be in a directory which contains your other Apache::
files (the convention is that Apache::Footer means Apache/Footer.pm)
so if you have them in
/usr/local/Apache/lib/perl/Apache
and so you will have put
use lib Apache->server_root_relative('lib/perl');
in startup.pl as shown on page 28 of the Eagle book, then you can put
Footer.pm in that directory,
/usr/local/Apache/lib/perl/Apache/Footer.pm
It can be anywhere else, all that matters is that it can be found when
it is needed by reference to the paths in @INC. If the Footer module
cannot be found your error_log will have a listing of @INC. Put
Footer.pm in a directory called `Apache' in one of those directories.
Make its permissions 644.
Don't forget that you have to restart Apache (`apachectl restart')
after you make changes to modules (and to your configuration) for them
to become effective.
In my copy of the Eagle book (first edition, March 1999) in example
4-1 there seems to be a superfluous '>' character after the first
double-quote character on line 4 of page 93.
73
Ged.