Thanks for the response Mr. Philip M. Gollucci.
I used
PerlResponseHandler Modperl::PerlRun
But it still wouldnot work . It gives the same kind of error again as under:-
[Tue Oct 18 20:40:25 2005] [error] [client 127.0.0.1] failed to resolve handler
`Modperl::PerlRun': Can't locate Modperl/PerlRun.pm in @INC (@INC contains:
/usr/local/lib/perl5/site_perl/5.8.6/i686-linux-stdio/ModPerl
/usr/local/lib/perl5/5.8.6/i686-linux-stdio /usr/local/lib/perl5/5.8.6
/usr/local/lib/perl5/site_perl/5.8.6/i686-linux-stdio
/usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl .
/home/staff/install/httpd-2.0.54/prefork) at (eval 4) line 3.\n
Again the PerlRun.pm is in
/usr/local/lib/perl5/site_perl/5.8.6/i686-linux-stdio/ModPerl.
The script is quite simple:-
!#/usr/local/bin/perl
print "Content-type: text/plain\n\n";
print "mod_perl 2.0 rocks!\n";
And the include path of PerlRun.pm is included in @INC in a file called
startup.pl which contains
use lib qw(/usr/local/lib/perl5/site_perl/5.8.6/i686-linux-stdio/ModPerl);
1;
The file startup.pl is called in Apache during startup as:-
PerlRequire /home/staff/scripts/startup.pl
Whats amazing is that it works well when I configure httpd as:-
<Location /perl/>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Location>
But the trouble is that I want some of my old perl scripts to work under
mod_perl. Thats why I have to use PerlRun. But the apache server fails to
resolve it.
With warm regards.
Vivek J. Joshi.
[EMAIL PROTECTED]
Trikon electronics Pvt. Ltd.
--New opinions often appear first as jokes and fancies, then as blasphemies and
treason, then as questions open to discussion, and finally as established
truths.
Philip M. Gollucci wrote:
> >[EMAIL PROTECTED] wrote:
>> Dear Friends,
>> I am encountering a strange problem with my mod perl 2. I have installed
>> mod
perl 2 on apache and its using perl-5.8.6. I am using a server with two AMD 64
bit processors and 4 GB RAM. Initially I was using perl 5.8.6 in
/usr/local/bin/perl configured with static Dynaloader which was used in Apache
configuration when Apache was being installed. But for mod perl, I installed a
different perl in
>> /opt/perl4modperl/bin
>> which was configured with dynamically linkable Dynaloader. Then I used that
modperl in Apache as a LoadModule. Because I wanted to use the same old
cgi-perl script, I used
>>
>> PerlHandler Apache::PerlRun
>
>You should spend a lot of time on perl.apache.org
>
>Its
>PerlResponseHandler Modperl::PerlRun
>
>Thats definetely in the FAQ.
>
>--
>END
>------------------------------------------------------------
> What doesn't kill us can only make us stronger.
> Nothing is impossible.
>
>Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
>Consultant / http://p6m7g8.net/Resume/
>Senior Developer / Liquidity Services, Inc.
> http://www.liquidityservicesinc.com
> http://www.liquidation.com
> http://www.uksurplus.com
> http://www.govliquidation.com
> http://www.gowholesale.com