Hello Gurus,
 
I installed perl 5.6.1 and mod_perl and Apache-ASP-2.27 on my Linux box. (Redhat 6.2)
and checked at commond line for version check, getting following info.
 
[root@qclinux /root]# perl -v
 
This is perl, v5.6.1 built for i686-linux
 
Copyright 1987-2001, Larry Wall
.........
 
And tried to for perldoc to see Apache::ASP, getting document,
 
[root@qclinux /root]# perldoc Apache::ASP
.1::Apache::ASPUser Contributed Perl Documentat.1::Apache::ASP(3)
NAME
         Apache::ASP - Active Server Pages for Apache with mod_perl
SYNOPSIS
         SetHandler  perl-script
         PerlModule  Apache::ASP
         PerlHandler Apache::ASP
         PerlSetVar  Global /tmp/asp

...........
 
And done the required modification in httpd.conf and
when restart the Apache, using  httpd -f /etc/httpd/conf/httpd.conf
it is displaying following info
 
[root@qclinux perl-5.6.1]# httpd
Syntax error on line 872 of /etc/httpd/conf/httpd.conf:
Can't locate Apache/ASP.pm in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 /etc/httpd/ /etc/httpd/lib/perl) at (eval 4) line 3.
>>>>>>>>> Modifications in httpd.conf   >>>>>>>>>
 
# Extra Modules
LoadModule perl_module        modules/libperl.so  # this line is already exist

LoadModule perl_module        modules/mod_perl.so
PerlModule Apache::ASP
PerlModule Apache::DBI

 Alias /perl/ /home/httpd/perl/
  <Location /perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    Options +ExecCGI
    PerlSendHeader On
  </Location>
 <Files ~ (\.asp)>
   SetHandler  perl-script
   PerlModule  Apache::ASP
   PerlHandler Apache::ASP
   PerlSetVar  Global .
   PerlSetVar  StateDir /tmp/asp
 </Files>
 
So, I commented ( # )  out the Red lines in httpd.conf
and successfully restarted the Apache.
 
# LoadModule perl_module        modules/mod_perl.so
..........
# PerlModule Apache::ASP
# PerlModule Apache::DBI
.......
<Files ~ (\.asp)>
   SetHandler  perl-script
#   PerlModule  Apache::ASP
 
Now able check execute the mod_perl scripts from browser, and it 's displaying "Yeah... mod_perl/1.21" on browser.
 
>>>>>>>>>>>>>>>>>>> chk.cgi  >>>>>>>>>
#! /usr/bin/perl -W
print "Content-type:text/html \n\n";
 
if(exists $ENV{MOD_PERL}) {
 
          #we're running under mod_perl
          print "yeah... " . $ENV{MOD_PERL};
        }
        else {
                #we're NOT running under mod_perl
                print "No... " . $ENV{MOD_PERL};
        }
<<<<<<<<<<<<<<<<<<<<
 
But, when try to check from browser:, it still displaying old version only and old environment.
That's i am unable to access the newly installed perl 5.6.1, mod_perl and it's Apache::ASP, Apache::SSI, Apache::DBI
moudles.
 
How to udate the httpd include enviroment, which will be loaded by httpd service?
 
>>>>http://192.168.1.235/perl-status >>>>>>>>>>>
Embedded Perl version 5.00503 for Apache/1.3.12 (Unix) (Red Hat/Linux) PHP/3.0.15 mod_perl/1.21 process 1887,
running since Wed Nov 7 08:50:51 2001
 
>>>>>>>>>>>> Loaded Moudles >>>>>>>>>>>>>>>.
 
@INC =
/usr/lib/perl5/5.00503/i386-linux
/usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux
/usr/lib/perl5/site_perl/5.005
/etc/httpd/
/etc/httpd/lib/perl
[root@qclinux /root]# tail /var/log/httpd/error_log
[Wed Nov  7 07:41:03 2001] [notice] caught SIGTERM, shutting down
[Wed Nov  7 07:42:29 2001] [notice] Apache/1.3.12 (Unix)  (Red Hat/Linux) PHP/3.0.15 mod_perl/1.21 configured -- resuming normal operations
[Wed Nov  7 07:48:51 2001] [error] Can't locate Apache/ASP.pm in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 /etc/httpd/ /etc/httpd/lib/perl) at (eval 5) line 3.
 
[Wed Nov  7 07:48:51 2001] [error] Undefined subroutine &Apache::ASP::handler called.
 
Please help me to up the Apache with Apache::ASP with mod_perl. 
 
Thanks in advance.  
 
-SubbaReddy M

Reply via email to