RE: [users@httpd] mod_perl trouble

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Jan Eden [mailto:lists@xxxxxxxxxxx] 
> Sent: Wednesday, June 22, 2005 7:33 AM
> To: users@xxxxxxxxxxxxxxxx
> Subject: [users@httpd] mod_perl trouble
> 
> Hi,
> 
> I just installed mod_perl 2.0.1 as a DSO for Apache 2.0.53. 
> When trying the minimal example from the docs:
> 
> Alias /perl/ /home/httpd/httpd-2.0/perl/
>   <Location /perl/>
>       SetHandler perl-script
>       PerlResponseHandler ModPerl::Registry
>       PerlOptions +ParseHeaders
>       Options +ExecCGI
> </Location>
> 
> and running a simple script (printing out headers and a 
> single line), everything works fine.
> 
> But if I change the setup to something like
> 
> # mod_perl directory
> Alias /perl/ /home/httpd/httpd-2.0/perl/
> 
> PerlModule Apache::Registry
> PerlModule CGI
> 
> <Location /perl/>
>     SetHandler perl-script
>     PerlHandler Apache::Registry
>     PerlOptions +ParseHeaders
>     Options +ExecCGI
> </Location>
> 
> I get error messages like
> 
> Can't locate loadable object for module Apache::Constants in @INC
> Can't load Perl module Apache::Registry for server 
> 127.0.0.1:0, exiting...
> 
> All mod_perl modules seem to be in 
> /System/Library/Perl/5.8.1/darwin-thread-multi-2level - so 
> what am I doing wrong?
> 
> Thanks,
> 
> Jan
> -- 
> Alcohol and calculus don't mix - PLEASE don't drink and derive.
> 

Running:: Server Version: Apache/2.0.48 (Win32) mod_perl/1.99_13-dev
Perl/v5.8.3 PHP/4.3.4 

I had a similar issue and had to add a few lines to the httpd.conf

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
PerlSwitches -w
PerlSwitches -I/WebCore2/Perl/site/lib/Apache2
PerlSwitches -I/WebCore2/Perl/site/lib
PerlSwitches -I/WebCore2/Perl/lib

<IfModule mod_perl.c>
    Include conf/perl.conf
</IfModule>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

There is some kind of command to show @INC hash but I can't remember it.


Thanx
Aaron N Wagner
Monitoring Systems and Network Tools
CCO-Command Center Operations
804.515.6298
 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux