Re: Another "Apache.pm failed to load!." question....

2002-10-08 Thread Andrew McCall

On Monday 07 October 2002 11:05 am, Axel Gerstmair wrote:
> Hello Andrew,
>
> it seems like the Perl side of mod_perl is not installed. As far as I
> know, you must always do a "make" and "make install" in the directory
> where you untarred your mod_perl sources, so that the Perl modules get
> installed correctly.
>
> If you want to make Apache separately, you must leave out the option
> DO_HTTPD (when running perl Makefile.PL ...) or set it to 0.

Thats really weird :)

It has indeed fixed my problem, but what I don't understand is how.

I have used the same script to build my Apache web servers for about a year, 
and it has worked for version 1.3.20,1.3.22 and on other servers for 1.3.26 and 
1.3.27. Its strange that this problem has only showed on this server...

-- 
Thanks,

Andrew McCall
Internet/Linux System Administrator
I.C.T. Division
Oldham MBC
Civic Centre
West Street
Oldham
OL1 1UU

Tel : 0161 911 3990
Fax : 0161 911 3998
Email : [EMAIL PROTECTED]




**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.oldham.gov.uk
**




Re: Another "Apache.pm failed to load!." question....

2002-10-07 Thread Axel Gerstmair

Hello Andrew,

it seems like the Perl side of mod_perl is not installed. As far as I
know, you must always do a "make" and "make install" in the directory
where you untarred your mod_perl sources, so that the Perl modules get
installed correctly.

If you want to make Apache separately, you must leave out the option
DO_HTTPD (when running perl Makefile.PL ...) or set it to 0.

Best regards,
Axel


> [...]
> Starting Apache : [Mon Oct  7 09:01:34 2002] [error] Can't locate Apache.pm in
> @INC (@INC contains: /usr/lib/perl5/5.6.1/i586-linux /usr/lib/perl5/5.6.1 
>/usr/lib/perl5/site_perl/5.6.1/i586-linux /usr/lib/perl5/site_perl/5.6.1 
>/usr/lib/perl5/site_perl . /usr/local/apache/
> /usr/local/apache/lib/perl) at 
> (eval 2) line 3.

> Syntax error on line 293 of /usr/local/apache/conf/httpd.conf:
> Can't locate Apache.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i586-linux 
> /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i586-linux 
> /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl . /usr/local/apache/ 
> /usr/local/apache/lib/perl) at (eval 3) line 3.

> I have no idea why this isn't working. As far as I am concerned, its a brand 
> new install, identical to the pervious one, and I have used the exact same process 
>as before, one worked, the other didn't!

> Can anyone help me work out whats broken?




Another "Apache.pm failed to load!." question....

2002-10-07 Thread Andrew McCall

Hi All,

I have searched around the archives, but haven't been able to find an answer 
to my problem (flame me if I have totally overlooked something! :) )

I have two machines, ones a Dell 1650 dual P4 processor 1Gb RAM, and the 
second is a Dell 2450 dual P3 processor 1Gb RAM, both have RAID etc, and are 
very similar machines, other than one being older than the other.

The idea is that the Dell 2450 is my primary Apache web server, and I have an 
identical Apache web server set up on the Dell 1650 that acts as a backup - if the 
2450 goes down for some reason, I can manually point our firewall to 
the 1650 while I fix the 2450.

I have done identical installations of SuSE Linux 8.0 Professional on both machines, 
leaving out all apahce, mod_*'s and php rpms.

I then downloaded Apache 1.3.26, mod_perl 1.27, mod_ssl 2.8.10-1.3.26, OpenSSL 
0.9.6g and PHP 4.2.2.

I started on the backup 1650 server, and installed all the software using these rules 
for mod_perl and Apache (I can post the configure rules for the 
other software if its needed)

perl Makefile.PL EVERYTHING = 1 APACHE_SRC = ../apache_1.3.26/src/ USE_APACI = 
1 PREP_HTTPD = 1 DO_HTTPD = 1

...and didn't compile as its going to get done with Apache's make later

SSL_BASE=../openssl-0.9.6g ./configure --prefix=/usr/local/apache/ 
--enable-module=env --enable-module=setenvif --enable-module=mime 
--enable-module=mime_magic --enable-module=negotiation --enable-module=alias 
--enable-module=userdir --enable-module=dir --enable-module=autoindex 
--enable-module=access --enable-module=auth --enable-module=asis 
--enable-module=include --enable-module=cgi --enable-module=actions 
--enable-module=status --enable-module=info --enable-module=log_config 
--enable-module=imap --activate-module=src/modules/perl/libperl.a 
--enable-module=ssl --enable-shared=max --disable-shared=perl

Then did my make, make certificates, make install

This worked great on the Dell 1650 and I have had it running my sites for a few weeks 
now.

I have now started to do the same install for the Dell 2450... I followed my 
instructions and everything compiles and installs great

however, when I try to start the server I get the "Apache.pm failed to load!." 
error in my error_log file!

I have re-configured/make'd etc. around 3 times just to make sure that I 
haven't done any thing differently.

I am 99% confident that these installs are identical other than the hardware, 
and the Apache install works on one, and not the other!

I have tried 
http://perl.apache.org/docs/1.0/guide/troubleshooting.html#_Apache_pm_failed_to_load__ 
and it then gives a different error :

Starting Apache : [Mon Oct  7 09:01:34 2002] [error] Can't locate Apache.pm in 
@INC (@INC contains: /usr/lib/perl5/5.6.1/i586-linux /usr/lib/perl5/5.6.1 
/usr/lib/perl5/site_perl/5.6.1/i586-linux /usr/lib/perl5/site_perl/5.6.1 
/usr/lib/perl5/site_perl . /usr/local/apache/ /usr/local/apache/lib/perl) at 
(eval 2) line 3.

Syntax error on line 293 of /usr/local/apache/conf/httpd.conf:
Can't locate Apache.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i586-linux 
/usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i586-linux 
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl . /usr/local/apache/ 
/usr/local/apache/lib/perl) at (eval 3) line 3.

I have no idea why this isn't working. As far as I am concerned, its a brand 
new install, identical to the pervious one, and I have used the exact same process as 
before, one worked, the other didn't!

Can anyone help me work out whats broken?

-- 
Thanks,

Andrew McCall
Internet/Linux System Administrator
I.C.T. Division
Oldham MBC
Civic Centre
West Street
Oldham
OL1 1UU

Tel : 0161 911 3990
Fax : 0161 911 3998
Email : [EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.oldham.gov.uk
**




Re: Apache.pm failed to load!

2002-06-04 Thread James Kirkland



Hi,
 
thanks to all for the help I found the 
answer.  I ran strace against httpd and found it was loading an old version 
of Apache.pm from /usr/lib/perl5/site_perl/5.6.1 not sure how it got 
there.  Removed it and all worked.
 
thanks
James

  - Original Message - 
  From: 
  James 
  Kirkland 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, June 04, 2002 11:09
  Subject: Apache.pm failed to load!
  
  Hi,
   
  I am getting the "Apache.pm failed to load!" error.  I need help to 
  resolve:
   
  [root@fisher mysql]# perl -MApache -e 1
   
  Can't load 
  '/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Slash/Apache/Apache.so' 
  for module Slash::Apache: 
  /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Slash/Apache/Apache.so: 
  undefined symbol: perl_cmd_perl_TAKE1 at 
  /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206. at -e 
  line 0Compilation failed in require.BEGIN failed--compilation 
  aborted.
   
  the end of the strace output is:
   
  read(5, 
  "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\*\0\000"..., 1024) = 
  1024fstat64(5, {st_mode=S_IFREG|0755, st_size=41994, ...}) = 
  0brk(0x87ed000)  
  = 0x87ed000old_mmap(NULL, 37492, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 
  0x40b32000mprotect(0x40b3a000, 4724, PROT_NONE)   = 
  0old_mmap(0x40b3a000, 8192, PROT_READ|PROT_WRITE, 
  MAP_PRIVATE|MAP_FIXED, 5, 0x7000) = 
  0x40b3a000close(5)    
  = 0open("/usr/lib/mysql/i686/mmx/libmysqlclient.so.10", O_RDONLY) = -1 
  ENOENT (No such file or directory)stat64("/usr/lib/mysql/i686/mmx", 
  0xbfffef30) = -1 ENOENT (No such file or 
  directory)open("/usr/lib/mysql/i686/libmysqlclient.so.10", O_RDONLY) = -1 
  ENOENT (No such file or directory)stat64("/usr/lib/mysql/i686", 
  0xbfffef30) = -1 ENOENT (No such file or 
  directory)open("/usr/lib/mysql/mmx/libmysqlclient.so.10", O_RDONLY) = -1 
  ENOENT (No such file or directory)stat64("/usr/lib/mysql/mmx", 
  0xbfffef30) = -1 ENOENT (No such file or 
  directory)open("/usr/lib/mysql/libmysqlclient.so.10", O_RDONLY) = 
  5read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\200"..., 
  1024) = 1024fstat64(5, {st_mode=S_IFREG|0755, st_size=251027, ...}) = 
  0old_mmap(NULL, 216960, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 
  0x40b84000mprotect(0x40ba1000, 98176, PROT_NONE)  = 
  0old_mmap(0x40ba1000, 98304, PROT_READ|PROT_WRITE, 
  MAP_PRIVATE|MAP_FIXED, 5, 0x1d000) = 
  0x40ba1000close(5)    
  = 
  0brk(0x87ee000)  
  = 
  0x87ee000brk(0x87ef000)  
  = 
  0x87ef000brk(0x87f)      
  = 0x87frt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0write(2, 
  "Apache.pm failed to load!.\n", 27) = 27_exit(2)    
   
  [root@fisher mysql]# rpm -qa |grep 
  perlperl-SGMLSpm-1.03ii-4perl-DB_File-1.75-34.99.6groff-perl-1.17.2-12perl-libxml-enno-1.02-15perl-libwww-perl-5.63-9perl-libxml-perl-0.07-14perl-5.6.1-34.99.6perl-CPAN-1.59_54-34.99.6perl-NDBM_File-1.75-34.99.6perl-DateManip-5.40-15perl-Digest-MD5-2.16-15perl-Parse-Yapp-1.05-15perl-URI-1.17-16perl-XML-Encoding-1.01-9perl-XML-Parser-2.30-15perl-XML-Dumper-0.4-12perl-Crypt-SSLeay-0.35-15perl-Frontier-RPC-0.06-14perl-suidperl-5.6.1-34.99.6perl-TimeDate-1.10-14mod_perl-1.26-5perl-CGI-2.752-34.99.6perl-Storable-1.0.14-15perl-XML-Grove-0.46alpha-11perl-XML-Twig-2.02-9perl-Devel-Symdump-2.01-15perl-Time-HiRes-1.20-14
   
  thanksJames


Re: Apache.pm failed to load!

2002-06-04 Thread James Kirkland




Hi,
 
For more information I get that error when I 
run:
httpd -f conf/httpd.conf 
-DHAVE_PERL
thanks
James

  - Original Message - 
  From: 
  James 
  Kirkland 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, June 04, 2002 11:09
  Subject: Apache.pm failed to load!
  
  Hi,
   
  I am getting the "Apache.pm failed to load!" error.  I need help to 
  resolve:
   
  [root@fisher mysql]# perl -MApache -e 1
   
  Can't load 
  '/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Slash/Apache/Apache.so' 
  for module Slash::Apache: 
  /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Slash/Apache/Apache.so: 
  undefined symbol: perl_cmd_perl_TAKE1 at 
  /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206. at -e 
  line 0Compilation failed in require.BEGIN failed--compilation 
  aborted.
   
  the end of the strace output is:
   
  read(5, 
  "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\*\0\000"..., 1024) = 
  1024fstat64(5, {st_mode=S_IFREG|0755, st_size=41994, ...}) = 
  0brk(0x87ed000)  
  = 0x87ed000old_mmap(NULL, 37492, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 
  0x40b32000mprotect(0x40b3a000, 4724, PROT_NONE)   = 
  0old_mmap(0x40b3a000, 8192, PROT_READ|PROT_WRITE, 
  MAP_PRIVATE|MAP_FIXED, 5, 0x7000) = 
  0x40b3a000close(5)    
  = 0open("/usr/lib/mysql/i686/mmx/libmysqlclient.so.10", O_RDONLY) = -1 
  ENOENT (No such file or directory)stat64("/usr/lib/mysql/i686/mmx", 
  0xbfffef30) = -1 ENOENT (No such file or 
  directory)open("/usr/lib/mysql/i686/libmysqlclient.so.10", O_RDONLY) = -1 
  ENOENT (No such file or directory)stat64("/usr/lib/mysql/i686", 
  0xbfffef30) = -1 ENOENT (No such file or 
  directory)open("/usr/lib/mysql/mmx/libmysqlclient.so.10", O_RDONLY) = -1 
  ENOENT (No such file or directory)stat64("/usr/lib/mysql/mmx", 
  0xbfffef30) = -1 ENOENT (No such file or 
  directory)open("/usr/lib/mysql/libmysqlclient.so.10", O_RDONLY) = 
  5read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\200"..., 
  1024) = 1024fstat64(5, {st_mode=S_IFREG|0755, st_size=251027, ...}) = 
  0old_mmap(NULL, 216960, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 
  0x40b84000mprotect(0x40ba1000, 98176, PROT_NONE)  = 
  0old_mmap(0x40ba1000, 98304, PROT_READ|PROT_WRITE, 
  MAP_PRIVATE|MAP_FIXED, 5, 0x1d000) = 
  0x40ba1000close(5)    
  = 
  0brk(0x87ee000)  
  = 
  0x87ee000brk(0x87ef000)  
  = 
  0x87ef000brk(0x87f)      
  = 0x87frt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0write(2, 
  "Apache.pm failed to load!.\n", 27) = 27_exit(2)    
   
  [root@fisher mysql]# rpm -qa |grep 
  perlperl-SGMLSpm-1.03ii-4perl-DB_File-1.75-34.99.6groff-perl-1.17.2-12perl-libxml-enno-1.02-15perl-libwww-perl-5.63-9perl-libxml-perl-0.07-14perl-5.6.1-34.99.6perl-CPAN-1.59_54-34.99.6perl-NDBM_File-1.75-34.99.6perl-DateManip-5.40-15perl-Digest-MD5-2.16-15perl-Parse-Yapp-1.05-15perl-URI-1.17-16perl-XML-Encoding-1.01-9perl-XML-Parser-2.30-15perl-XML-Dumper-0.4-12perl-Crypt-SSLeay-0.35-15perl-Frontier-RPC-0.06-14perl-suidperl-5.6.1-34.99.6perl-TimeDate-1.10-14mod_perl-1.26-5perl-CGI-2.752-34.99.6perl-Storable-1.0.14-15perl-XML-Grove-0.46alpha-11perl-XML-Twig-2.02-9perl-Devel-Symdump-2.01-15perl-Time-HiRes-1.20-14
   
  thanksJames


Re: Apache.pm failed to load!

2002-06-04 Thread Stas Bekman

[Please make sure to reply to the list on follow-ups, and not to the 
person who has answered your question. Thank you!]

James Kirkland wrote:
> Hi,
> 
> Thanks for replying.  I continue to get the errors when adding that line to
> httpd.conf.  Is there any specific point in the file to place it?

When do you get this error

>>James Kirkland wrote:
>>
>>>Hi,
>>>
>>>I am getting the "Apache.pm failed to load!" error.  I need help to
>>>resolve:
>>>
>>>[root@fisher mysql]# perl -MApache -e 1
>>
>>
>>You shouldn't be testing mod_perl modules from the command line. it
>>won't work.
>>
>>If it happens under mod_perl, see:
>>
> 
> 
>http://perl.apache.org/release/docs/1.0/guide/troubleshooting.html#_Apache_pm_failed_to_load__



__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




Re: Apache.pm failed to load!

2002-06-04 Thread Stas Bekman

James Kirkland wrote:
> 
> Hi,
>  
> I am getting the "Apache.pm failed to load!" error.  I need help to
> resolve:
>  
> [root@fisher mysql]# perl -MApache -e 1


You shouldn't be testing mod_perl modules from the command line. it 
won't work.

If it happens under mod_perl, see:
http://perl.apache.org/release/docs/1.0/guide/troubleshooting.html#_Apache_pm_failed_to_load__

-- 


__
Stas BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




Apache.pm failed to load!

2002-06-04 Thread James Kirkland



Hi,
 
I am getting the "Apache.pm failed to load!" error.  I need help to 
resolve:
 
[root@fisher mysql]# perl -MApache -e 1
 
Can't load 
'/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Slash/Apache/Apache.so' for 
module Slash::Apache: 
/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Slash/Apache/Apache.so: 
undefined symbol: perl_cmd_perl_TAKE1 at 
/usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206. at -e line 
0Compilation failed in require.BEGIN failed--compilation aborted.
 
the end of the strace output is:
 
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\*\0\000"..., 
1024) = 1024fstat64(5, {st_mode=S_IFREG|0755, st_size=41994, ...}) = 
0brk(0x87ed000)  
= 0x87ed000old_mmap(NULL, 37492, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 
0x40b32000mprotect(0x40b3a000, 4724, PROT_NONE)   = 
0old_mmap(0x40b3a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
5, 0x7000) = 
0x40b3a000close(5)    
= 0open("/usr/lib/mysql/i686/mmx/libmysqlclient.so.10", O_RDONLY) = -1 
ENOENT (No such file or directory)stat64("/usr/lib/mysql/i686/mmx", 
0xbfffef30) = -1 ENOENT (No such file or 
directory)open("/usr/lib/mysql/i686/libmysqlclient.so.10", O_RDONLY) = -1 
ENOENT (No such file or directory)stat64("/usr/lib/mysql/i686", 
0xbfffef30) = -1 ENOENT (No such file or 
directory)open("/usr/lib/mysql/mmx/libmysqlclient.so.10", O_RDONLY) = -1 
ENOENT (No such file or directory)stat64("/usr/lib/mysql/mmx", 
0xbfffef30) = -1 ENOENT (No such file or 
directory)open("/usr/lib/mysql/libmysqlclient.so.10", O_RDONLY) = 
5read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\200"..., 
1024) = 1024fstat64(5, {st_mode=S_IFREG|0755, st_size=251027, ...}) = 
0old_mmap(NULL, 216960, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 
0x40b84000mprotect(0x40ba1000, 98176, PROT_NONE)  = 
0old_mmap(0x40ba1000, 98304, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED, 5, 0x1d000) = 
0x40ba1000close(5)    
= 
0brk(0x87ee000)  
= 
0x87ee000brk(0x87ef000)  
= 
0x87ef000brk(0x87f0000)  
= 0x87frt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0write(2, 
"Apache.pm failed to load!.\n", 27) = 27_exit(2)    
 
[root@fisher mysql]# rpm -qa |grep 
perlperl-SGMLSpm-1.03ii-4perl-DB_File-1.75-34.99.6groff-perl-1.17.2-12perl-libxml-enno-1.02-15perl-libwww-perl-5.63-9perl-libxml-perl-0.07-14perl-5.6.1-34.99.6perl-CPAN-1.59_54-34.99.6perl-NDBM_File-1.75-34.99.6perl-DateManip-5.40-15perl-Digest-MD5-2.16-15perl-Parse-Yapp-1.05-15perl-URI-1.17-16perl-XML-Encoding-1.01-9perl-XML-Parser-2.30-15perl-XML-Dumper-0.4-12perl-Crypt-SSLeay-0.35-15perl-Frontier-RPC-0.06-14perl-suidperl-5.6.1-34.99.6perl-TimeDate-1.10-14mod_perl-1.26-5perl-CGI-2.752-34.99.6perl-Storable-1.0.14-15perl-XML-Grove-0.46alpha-11perl-XML-Twig-2.02-9perl-Devel-Symdump-2.01-15perl-Time-HiRes-1.20-14
 
thanksJames


Re: Apache.pm failed to load!.

2002-01-21 Thread Rasoul Hajikhani

___cliff rayman___ wrote:
> 
> first off, that looks like a spanking brand new version
> of apache but an older version of mod_perl.  you will
> probaby be happier with mod_perl-1.26
> 
> what happens when you try the following from the command line?
> perl -MApache -e 1
> 
> Rasoul Hajikhani wrote:
> 
> > Folks,
> > After installing mod_perl-1.25 & apache_1.3.22 I get this error message!
> > I know this is a really serious error, but I was wondering if any one
> > could tell me why I would get this since the installation of both
> > mod_perl and apache went through without a problem?!
> > -r
> 
> --
> ___cliff [EMAIL PROTECTED]http://www.genwax.com/
Well don't know... I removed them both and are in the middle of
reinstalling them. Will let you know asap ...
-r



Re: Apache.pm failed to load!.

2002-01-21 Thread ___cliff rayman___

first off, that looks like a spanking brand new version
of apache but an older version of mod_perl.  you will
probaby be happier with mod_perl-1.26

what happens when you try the following from the command line?
perl -MApache -e 1

Rasoul Hajikhani wrote:

> Folks,
> After installing mod_perl-1.25 & apache_1.3.22 I get this error message!
> I know this is a really serious error, but I was wondering if any one
> could tell me why I would get this since the installation of both
> mod_perl and apache went through without a problem?!
> -r

--
___cliff [EMAIL PROTECTED]http://www.genwax.com/





Apache.pm failed to load!.

2002-01-21 Thread Rasoul Hajikhani

Folks,
After installing mod_perl-1.25 & apache_1.3.22 I get this error message!
I know this is a really serious error, but I was wondering if any one
could tell me why I would get this since the installation of both
mod_perl and apache went through without a problem?!
-r



'PerlModule Apache' creates a error when include in httpd.conf-trying to fix 'Apache.pm failed to load' problem

2001-01-15 Thread pemalone

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 




Re: Apache.pm failed to load!.

2000-08-24 Thread Stas Bekman

On Thu, 24 Aug 2000, Alexander Farber (EED) wrote:

> Sorry, I have forgotten to set PERL5LIB. After
> 
>   setenv PERL5LIB /home/eedalf/lib/perl5/site_perl/5.005/sun4-solaris
> 
> everything seems to work. Can I specify this location 
> somewhere in httpd.conf?

http://perl.apache.org/guide/config.html#PerlSetVar_PerlSetEnv_and_PerlP
http://perl.apache.org/guide/config.html#PerlSetupEnv


_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perlmonth.com   perl.org   apache.org





Re: Apache.pm failed to load!.

2000-08-24 Thread Alexander Farber (EED)

Sorry, I have forgotten to set PERL5LIB. After

  setenv PERL5LIB /home/eedalf/lib/perl5/site_perl/5.005/sun4-solaris

everything seems to work. Can I specify this location 
somewhere in httpd.conf?



Apache.pm failed to load!.

2000-08-24 Thread Alexander Farber (EED)

Hi,

I am trying to install Apache 1.3.12 and mod_perl 1.24 in my home 
directory as a non-root user and probably missing something obvious:
I run "/home/eedalf/apache/bin/apachectl start" and see the message
"/home/eedalf/apache/bin/apachectl start: httpd started" but I am
unable to connect to http://localhost:8080/ and don't see httpd in
"ps uax", neither in "netstat" (and the port 8080 is free). In the
"~/apache/logs/error_log" file I see "Apache.pm failed to load!."

I am using "SunOS 5.6 Generic_105181-19 sun4u sparc SUNW,Ultra-5_10",
"gcc version 2.8.1" and "perl, version 5.005_03 built for sun4-solaris".

To compile and install, I have used:

  % perl Makefile.PL \
  PREFIX=/home/eedalf \
  APACHE_PREFIX=/home/eedalf/apache \
  APACHE_SRC=../apache_1.3.12/src \
  DO_HTTPD=1 \
  USE_APACI=1 \
  EVERYTHING=1
  % make && make test && make install 
  % cd ../apache_1.3.12
  % make install

and the "make test" seemed to work fine. I am new to Apache and mod_perl 
and keep reading the docs and the Eagle Book, but if anyone here has an 
idea what am I doing wrong, I would very appreciate you help.

Thank you
Alex

PS: Does "EVERYTHING=1" also mean that I can load the modules on the fly?
PPS: mod_perl doesn't use the Perl sources and its libperl.(a|so), right?



Re: Apache.pm failed to load

2000-08-22 Thread Stas Bekman

On Mon, 21 Aug 2000, Clayton Mitchell wrote:

> I think I followed the directions, and I also added "PerlModule Apache" in
> httpd.conf,
> 
> but I still get the error "Apache.pm failed to load!."  when trying to start
> httpsd.
> 
> I am on Sol 2.7, gcc 2.8.1 apache-1.3.12 and openssl_0.9.5 and
> mod_perl-1.24.
> 
> I have performed the steps outlined in this page with the exception noted
> below.
> 
> Any help is greatly appreciated.
> 
> http://perl.apache.org/guide/install.html#Source_Configuration_perl_Makef
> 
> Under the section for 
> 
> mod_perl and apache-ssl (+openssl)
>   
> Configure and install openssl: 
> 
> % cd openssl-x.x.x
> % ./config
> % make && make test && make install
> 
> 
> Patch Apache with SSLeay paths 
>   
> % cd apache_x.xx
> % tar xzvf ../apache_x.x.x+ssl_x.xx.tar.gz
> % FixPatch
> Do you want me to apply the fixed-up Apache-SSL patch for you?
> [n] y
> 
> 
> Now edit the src/Configuration file if needed and then configure: 
>   
> % cd ../mod_perl-x.xx
> % perl Makefile.PL USE_APACI=1 EVERYTHING=1 \
>   DO_HTTPD=1 SSL_BASE=/usr/local/ssl \
>   APACHE_SRC=../apache_x.x.x/src
> 
> 
> Build, test and install:  
>   
> % make && make test && make install
> % cd ../apache_x.x.x
> % make certificate
> % make install
> 
> > make cert and make install steps I skipped.  I had a prior version of
> apache-ssl I am replacing.

Don't skip the 'make install'!

> Here is what the perl library has:
> 
> # find /opt/local/lib/perl5 -name Apache
> /opt/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/Apache
> /opt/local/lib/perl5/site_perl/5.005/Apache
> # ls /opt/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/Apache
> AuthenSmb  Sandwich
> # ls /opt/local/lib/perl5/site_perl/5.005/Apache
> AuthenSmb.pm  Sandwich.pm
> # find /opt/local/lib/perl5 -name Apache.pm
> /opt/local/lib/perl5/5.00503/CGI/Apache.pm
> # cp /opt/local/lib/perl5/5.00503/CGI/Apache.pm .
> 
> ..still didn't work.
> 



_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perlmonth.com   perl.org   apache.org





Apache.pm failed to load

2000-08-21 Thread Clayton Mitchell

I think I followed the directions, and I also added "PerlModule Apache" in
httpd.conf,

but I still get the error "Apache.pm failed to load!."  when trying to start
httpsd.

I am on Sol 2.7, gcc 2.8.1 apache-1.3.12 and openssl_0.9.5 and
mod_perl-1.24.

I have performed the steps outlined in this page with the exception noted
below.

Any help is greatly appreciated.

http://perl.apache.org/guide/install.html#Source_Configuration_perl_Makef

Under the section for 

mod_perl and apache-ssl (+openssl)
  
Configure and install openssl: 

% cd openssl-x.x.x
% ./config
% make && make test && make install


Patch Apache with SSLeay paths 
  
% cd apache_x.xx
% tar xzvf ../apache_x.x.x+ssl_x.xx.tar.gz
% FixPatch
Do you want me to apply the fixed-up Apache-SSL patch for you?
[n] y


Now edit the src/Configuration file if needed and then configure: 
  
% cd ../mod_perl-x.xx
% perl Makefile.PL USE_APACI=1 EVERYTHING=1 \
  DO_HTTPD=1 SSL_BASE=/usr/local/ssl \
  APACHE_SRC=../apache_x.x.x/src


Build, test and install:  
  
% make && make test && make install
% cd ../apache_x.x.x
% make certificate
% make install

> make cert and make install steps I skipped.  I had a prior version of
apache-ssl I am replacing.

Here is what the perl library has:

# find /opt/local/lib/perl5 -name Apache
/opt/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/Apache
/opt/local/lib/perl5/site_perl/5.005/Apache
# ls /opt/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/Apache
AuthenSmb  Sandwich
# ls /opt/local/lib/perl5/site_perl/5.005/Apache
AuthenSmb.pm  Sandwich.pm
# find /opt/local/lib/perl5 -name Apache.pm
/opt/local/lib/perl5/5.00503/CGI/Apache.pm
# cp /opt/local/lib/perl5/5.00503/CGI/Apache.pm .

..still didn't work.



Re: Apache.pm failed to LOAD!

2000-05-03 Thread Doug MacEachern

On Wed, 3 May 2000, Wang, Pin-Chieh wrote:

> Hi,
> I build the apache1.3.12 using mod_perl 1.23 on Solaris 2.6 machine,
> everything looks fine and installed successfully (at least the installation
> program told me so...)
> But when I start httpd using apachectl start, httpd did not start within
> error_log there is a message "Apache.pm failed to LOAD!"

assuming you did 'make install' in the mod_perl directory, does adding
'PerlModule Apache' to your httpd.conf make any difference?




Re: Apache.pm failed to LOAD!

2000-05-03 Thread Jeff Beard

Did it pass 'make test'? And, not meaning to insult, did you run 'make 
install' in the mod_perl directory?

--Jeff

At 07:01 PM 5/3/00, Wang, Pin-Chieh wrote:
>Hi,
>I build the apache1.3.12 using mod_perl 1.23 on Solaris 2.6 machine,
>everything looks fine and installed successfully (at least the installation
>program told me so...)
>But when I start httpd using apachectl start, httpd did not start within
>error_log there is a message "Apache.pm failed to LOAD!"
>Any one have any ideal? Thanks in advance
>P C Wang



Jeff Beard
_
Web:www.cyberxape.com
Email:  jeff at cyberxape.com
Location:   Boulder, CO, USA






Apache.pm failed to LOAD!

2000-05-03 Thread Wang, Pin-Chieh

Hi,
I build the apache1.3.12 using mod_perl 1.23 on Solaris 2.6 machine,
everything looks fine and installed successfully (at least the installation
program told me so...)
But when I start httpd using apachectl start, httpd did not start within
error_log there is a message "Apache.pm failed to LOAD!"
Any one have any ideal? Thanks in advance
P C Wang