You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Steve Brown <st...@sprintmail.com> on 2004/01/28 21:00:28 UTC

ASP on Virtual Red Hat Server

Folks I'm back begging for help again.

Spencer at globalservers.com has recompiled mod_per and apache using perl 5.8.  See message below.

We have perl 5.8.0 installed at /usr/bin.

We have perl 5.8.3 installed at /usr/local/bin

I have done a /usr/bin/perl -MCPAN -e shell
cpan> install Bundle::Apache::ASP

and a /usr/local/bin/perl -MCPAN -e shell
cpan> install Bundle::Apache::ASP

When I put these lines into the /etc/httpd/conf/httpd.conf file:
PerlModule  Apache::ASP
<Files ~ (\.asp)>
  SetHandler  perl-script
  PerlHandler Apache::ASP
  PerlSetVar  Global /home/webadmin/ptoc.org/register
  PerlSetVar  StateDir /tmp/asp
  PerlSetVar UseStrict 0
  PerlSetVar Debug 3
</Files>

The Apache web server will not restart and gives no errors in error_log.

When I comment out these lines and put them in the /home/webadmin/ptoc.org/register/.htaccess file.  I get the following error when I run my test.asp (Hello World) asp.
[Wed Jan 28 11:24:58 2004] [alert] [client 207.43.195.204] /home/webadmin/ptoc.org/register/.htaccess: Can't locate Digest/MD5.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl . /etc/httpd/ /etc/httpd/lib/perl) at /usr/lib/perl5/site_perl/5.6.0/Apache/ASP.pm line 13.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.6.0/Apache/ASP.pm line 13.
Compilation failed in require at (eval 2) line 3.

We don't understand why it's showing perl 5.6 in the error message and of course it don't work.

With the lines commented out here's the error_log entry from a good restart:
[Wed Jan 28 11:23:46 2004] [notice] Apache/1.3.27 (Unix)  (Red-Hat/Linux) PHP/4.1.2 mod_perl/1.26 configured -- resuming normal operations

Any help will be appreciated.

Steve Brown

-----Original Message-----
From: "Candland, Spencer" <sc...@aboutws.com>
Sent: Jan 28, 2004 11:45 AM
To: 'Steve Brown' <st...@sprintmail.com>
Subject: RE: New Perl 5.8.0

I just completely recompiled mod_perl and apache using perl 5.8.  Please try
again.  If you continue to have problems please make sure there is nothing
in apache ASP that is specifically referencing perl 5.6.


-----Original Message-----
From: Steve Brown [mailto:steve@sprintmail.com]
Sent: Tuesday, January 27, 2004 7:52 PM
To: Candland, Spencer
Subject: RE: New Perl 5.8.0


I am very sorry to report, but from the following error, it appears that
mod_perl is still using perl 5.6

[Tue Jan 27 18:42:42 2004] [alert] [client 24.145.166.227]
/home/webadmin/ptoc.org/register/.htaccess: Can't locate Digest/MD5.pm in
@INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux
/usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl . /etc/httpd/
/etc/httpd/lib/perl) at /usr/lib/perl5/site_perl/5.6.0/Apache/ASP.pm line
13.

Steve Brown

> -----Original Message-----
> From: Candland, Spencer [mailto:scandland@aboutws.com]
> Sent: Tuesday, January 27, 2004 7:36 PM
> To: 'Steve Brown'
> Subject: RE: New Perl 5.8.0
> 
> I recompiled mod_perl against perl 5.8 for you.  I believe your may need
> to
> reinstall apache asp again.
> 
> 
> -----Original Message-----
> From: Steve Brown [mailto:steve@sprintmail.com]
> Sent: Tuesday, January 27, 2004 7:15 AM
> To: Candland, Spencer
> Subject: New Perl 5.8.0
> 
> 
> I have been hit hard by the new MyDoom worm/virus and I may not have
> received your most recent email.
> 
> This morning I was checking on things and discovered that I have a new
> perl
> 5.8.0 under /usr/bin.
> 
> I tried to run cpan and it was missing.  I copied the two missing files
> from
> /usr/local/lib/perl5/5.8.3
> 
> I then ran what appears to be a successful Apache ASP using cpan> install
> Bundle::Apache::ASP
> 
> I put the ASP conf stuff in my ptoc.org/register/.htaccess file and ran my
> test.asp (Hello World) and received the following error in the error_log.
> mod_perl is still compiled to use perl 5.6.
> 
> 
> [Tue Jan 27 05:33:08 2004] [alert] [client 207.43.195.202]
> /home/webadmin/ptoc.org/register/.htaccess: Can't locate Digest/MD5.pm in
> @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
> /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
> /usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at
> /usr/lib/perl5/site_perl/5.6.0/Apache/ASP.pm line 13.
> BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.6.0/Apache/ASP.pm line 13.
> Compilation failed in require at (eval 3) line 3.
> 
> Steve Brown
> 
> Steve Brown



Steve Brown

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: ASP on Virtual Red Hat Server

Posted by Josh Chamas <jo...@chamas.com>.
Steve Brown wrote:
> Folks I'm back begging for help again.
> 
> Spencer at globalservers.com has recompiled mod_per and apache using perl 5.8.  See message below.
> 
> We have perl 5.8.0 installed at /usr/bin.
> 
> We have perl 5.8.3 installed at /usr/local/bin
> 

...

> When I comment out these lines and put them in the /home/webadmin/ptoc.org/register/.htaccess file.  I get the following error when I run my test.asp (Hello World) asp.
> [Wed Jan 28 11:24:58 2004] [alert] [client 207.43.195.204] /home/webadmin/ptoc.org/register/.htaccess: Can't locate Digest/MD5.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl . /etc/httpd/ /etc/httpd/lib/perl) at /usr/lib/perl5/site_perl/5.6.0/Apache/ASP.pm line 13.
> BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.6.0/Apache/ASP.pm line 13.
> Compilation failed in require at (eval 2) line 3.
> 
> We don't understand why it's showing perl 5.6 in the error message and of course it don't work.

When perl 5.6 is in @INC, which is the search path for perl libraries, its a pretty good indication
that mod_perl was not recompiled and installed correctly to use the new perl 5.8.

Note that its easy to recompile, without reinstalling, and easy to reinstall without
stop/start the apache server, all of which need to be done correctly to get things
to work.  These are common mistakes people do when trying to install mod_perl.

> 
> With the lines commented out here's the error_log entry from a good restart:
> [Wed Jan 28 11:23:46 2004] [notice] Apache/1.3.27 (Unix)  (Red-Hat/Linux) PHP/4.1.2 mod_perl/1.26 configured -- resuming normal operations
> 

If you added to the httpd.conf

   <Perl>
     print STDERR join(" ", @INC)."\n";
   </Perl>

you would also get a pretty good view into where mod_perl thought it was installed
when the server is stop/start and you can check the error_log.

You could get an even better view by adding this:

  <Perl>
   use Config;
   print STDERR map { "$_: $Config{$_}\n" } keys %Config
  </Perl>

to the httpd.conf and just running something like apachectl configtest which I think
will get to you on the console.

Regards,

Josh

________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checker                 http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org