Tom Schindl wrote:
Hi,

Is Apache allowed to change into this directory/read the file, try to move it to e.g. /tmp and see if it works. You could also insert a print-Statement and you should see the output on the console when apache is started (stop/start not restart). I'm not sure but I think a restart will not reload PerlRequire things. Maybe someone could correct me if I'm wrong.

If I'm not wrong here's a doc-patch.

You could also test it using "apachectl configtest" and you should see the output.

Tom

David Arnold wrote:

All,

I have this in conf/httpd.conf:

# Startup File:
PerlRequire /home/darnold/modperl/startup.pl

And:

[EMAIL PROTECTED] apache]# cat /home/darnold/modperl/startup.pl
# File: startup.pl

use lib qw(/home/darnold/modperl/);
1;

However, I am getting this in my error log:

Can't locate OnlineTestingDB.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.6.2/i686-linux /usr/local/lib/perl5/5.6.2
/usr/local/lib/perl5/site_perl/5.6.2/i686-linux
/usr/local/lib/perl5/site_perl/5.6.2 /usr/local/lib/perl5/site_perl .)
Shouldn't @INC contain /home/darnold/modperl?



Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird



Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird
Index: config.pod
===================================================================
RCS file: /home/cvspublic/modperl-docs/src/docs/1.0/guide/config.pod,v
retrieving revision 1.18
diff -u -r1.18 config.pod
--- config.pod  26 Nov 2003 08:40:10 -0000      1.18
+++ config.pod  23 Jul 2004 06:28:09 -0000
@@ -665,6 +665,9 @@
 C<require()>'d, it must return a I<true> value.  To ensure that this
 happens don't forget to add C<1;> at the end of I<startup.pl>.
 
+Modules and modification e.g. to C<@INC> loaded via these Directives are only
+made if you issue a full stop/start, a restart is not sufficient.
+
 =head2 Perl*Handlers
 
 As you probably know Apache traverses a loop for each HTTP request it

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to