On Fri, 21 Feb 2003, Brendon Anderson wrote:

> Thanks for the quick reply.
>
> I'm not a perl person... what/where is startup.pl?

Sounds like you need to spend some time reading documentation. Start with
http://perl.apache.org/docs/2.0/user/index.html

Or else, if you don't want to read, you could hire me (or someone else) to
run your server for you.

Bottom line: if you want to use mod_perl you are going to have to become
something of a "perl person," at least if that means reading the manuals
of applications you want to use.

Since you said "thanks," however, the answer to your question is that
startup.pl (or whatever you want to call it) is a perl script used to load perl modules
at httpd server startup time. You specify the name of the file in
httpd.conf thusly:

PerlRequire /full/path/to/startup.pl

and in your case startup.pl would look like:

# startup.pl
use Apache2 ();
use Apache::compat ();
use Apache::RequestRec ();
1;

and would probably grow from there. My startup.pl for the new
httpd2/mod_perl2 installation I am building so far looks like:

nick@world ~>cat /home/www/_conf/startup.pl

use lib 'home/nick/perl';
use Apache2 ();
#use Apache::compat ();
use Apache::RequestRec;
use Apache::Connection;
use Apache::Const -compile => qw( SERVER_ERROR DECLINED FORBIDDEN OK 
HTTP_MOVED_TEMPORARILY );
use Apache::RequestUtil;
use Apache::SubRequest;
use Apache::Log;
use Apache::Server;
use APR::URI;
use APR::Table;

use Template qw( :template );

use CGI;
use CGI::Cookie;

#use Carp;
#$SIG{__WARN__} = \&Carp::cluck;

1;


Hope this helps. Read the documentation!

- nick

-- 

~~~~~~~~~~~~~~~~~~~~
Nick Tonkin   {|8^)>

Reply via email to