Problem:  I configure apache and mod_perl.  One day it runs fine.  The next
day I stop and start
the server and get a 'Apache.pm failed' problem.  I looked at the web site
and found I needed to 
add ' PerlModule Apache' to my httpd.conf file.  I get the error message
listed below.  I looked 
at the web site again and made sure that I was performing the 'make' and
'make install' steps for
mod_perl.  I get the same syntax error.  I looked at the 'PerlSetEnv'
command and didn't think
it was the solution.  Does anyone have any ideas?  The error message and
other details are listed
below.

Peggy Malone

System Details:
Apache version:  1.3.14
mod_perl version:  1.24_01
OS version:  SunOS Generic_106541-09 sun4u sparc SUNW,Ultra-1
perl version: 5.005_03 built for sun4-solaris
perl location:/usr/local/bin/perl
complier version:  gcc 2.95.2

---------Error message
# /usr/local/apache/bin/apachectl start
[Thu Jan 11 16:08:15 2001] [error] Can't locate Apache.pm in @INC (@INC
contains: /usr/local//lib/perl5/5.00503/sun4-solaris
/usr/local//lib/perl5/5.00503
/usr/local//lib/perl5/site_perl/5.005/sun4-solaris
/usr/local//lib/perl5/site_perl/5.005 . /usr/local/apache/
/usr/local/apache/lib/perl) at (eval 1) line 3.

Syntax error on line 745 of /usr/local/apache/conf/httpd.conf:
Can't locate Apache.pm in @INC (@INC contains:
/usr/local//lib/perl5/5.00503/sun4-solaris /usr/local//lib/perl5/5.00503
/usr/local//lib/perl5/site_perl/5.005/sun4-solaris
/usr/local//lib/perl5/site_perl/5.005 . /usr/local/apache/
/usr/local/apache/lib/perl) at (eval 2) line 3.

/usr/local/apache/bin/apachectl start: httpd could not be started

-------------Perl configuration file
perl /apsrc/systems/mod_perl/mod_perl-1.24_01/Makefile.PL \
APACHE_SRC=/apsrc/systems/apache/apache_1.3.14/src \
DO_HTTPD=1  \
EVERYTHING=1 \
USE_APACI=1 \
PREP_HTTPD=1

-----------Apache configuration file
./configure --prefix=/usr/local/apache \
--verbose \
--with-port=80 \
--logfiledir=/logrpt/apache \
--server-uid=http \
--server-gid=http \
--htdocsdir=/export/www2_root \
--enable-module=so \
--activate-module=src/modules/perl/libperl.a \
--activate-module=src/modules/php4/libphp4.a  \
--enable-module=stats 

Reply via email to