I am trying to figure out why I can not start up httpd now that I have
compiled Apache 1.3.6 Unix with mod_perl 1.21 with perl 5.004_01
under Redhat Linux 5.0, and can not run my startup script, even though I have 
added directories to my path in my startupscript. 

Whenever I try to run my startup.pl script, I get the error:

Can't locate object method "module" via package "Apache" at
/usr/lib/perl5/site_perl/Apache/DBI.pm line  202.
BEGIN failed--compilation aborted at startup.pl line 23.

FYI, line 202 is:  if ($INC{'Apache.pm'} and
Apache->module('Apache::Status'));

I added to my startup.pl script:
BEGIN {
 unshift @INC, "/usr/local/apache/lib /usr/lib/perl5/site_perl/Apache"  ;
 }
because I would do a locate command and find that some of my *.pm files
were not in the @INC path. 

Whenever I try to run httpd -d /usr/local/apache, I get numerous errors,
even though I am pretty sure that with my additions to @INC I have the
correct paths of all the modules listed. Any help much appreciated. Output
from running httpd below:
 
[root@localhost bin]# ./httpd -d /usr/local/apache
[Mon Jan 17 21:38:33 2000] [error] [Mon Jan 17 21:38:33 2000] startup.pl:
[Mon Jan 17 21:38:33 2000] Cookie.pm: [Mon Jan 17 21:38:33 2000]
Cookie.pm: [Mon Jan 17 21:38:33 2000] Table.pm: [Mon Jan 17 21:38:33 2000]
Table.pm: Can't find loadable object for module Apache::Table in @INC
(/usr/local/apache/lib /usr/local/apache/lib
/usr/lib/perl5/site_perl/Apache /usr/lib/perl5/i386-linux/5.00401
/usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux
/usr/lib/perl5/site_perl . /usr/local/apache/ /usr/local/apache/lib/perl)
at /usr/lib/perl5/site_perl/mod_perl.pm line 14
[Mon Jan 17 21:38:33 2000] startup.pl: [Mon Jan 17 21:38:33 2000]
Cookie.pm: [Mon Jan 17 21:38:33 2000] Cookie.pm: BEGIN failed--compilation
aborted at /usr/lib/perl5/site_perl/Apache/Cookie.pm line 5.
[Mon Jan 17 21:38:33 2000] startup.pl: BEGIN failed--compilation aborted
at /usr/local/apache/conf/startup.pl line 26.

Syntax error on line 48 of /usr/local/apache/conf/httpd.conf:
[Mon Jan 17 21:38:33 2000] startup.pl: [Mon Jan 17 21:38:33 2000]
Cookie.pm: [Mon Jan 17 21:38:33 2000] Cookie.pm: [Mon Jan 17 21:38:33
2000] Table.pm: [Mon Jan 17 21:38:33 2000] Table.pm: Can't find loadable
object for module Apache::Table in @INC (/usr/local/apache/lib
/usr/local/apache/lib /usr/lib/perl5/site_perl/Apache
/usr/lib/perl5/i386-linux/5.00401 /usr/lib/perl5
/usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .
/usr/local/apache/ /usr/local/apache/lib/perl) at
/usr/lib/perl5/site_perl/mod_perl.pm line 14
[Mon Jan 17 21:38:33 2000] startup.pl: [Mon Jan 17 21:38:33 2000]
Cookie.pm: [Mon Jan 17 21:38:33 2000] Cookie.pm: BEGIN failed--compilation
aborted at /usr/lib/perl5/site_perl/Apache/Cookie.pm line 5.
[Mon Jan 17 21:38:33 2000] startup.pl: BEGIN failed--compilation aborted
at /usr/local/apache/conf/startup.pl line 26.

Reply via email to