Mail Index


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

Re: [ApacheGallery] ApacheGallery on mod_perl 2



Fri, Dec 31, 2004 ve 09:45:01AM -0600, Tom Brown napsal:
> On Fri, Dec 31, 2004 at 03:09:04PM +0100, Ondra Kudlik wrote:
> > I want to run apachegallery under apache2 and mod_perl2. When I
> > install and configure it, I got following error:
> > 
> > failed to resolve handler `Apache::Gallery': Can't locate
> > Apache/Server.pm
> > 
> > I searched through lists and mod_perl documentation and found, that
> > functions from Server.pm is now provided by Apache::ServerRec.
> 
> Sounds almost like your mod_perl2 setup is broken. On my system
> $ locate /Server.pm
> /usr/lib/perl5/Apache2/Apache/Server.pm
> 
> so inside mod_perl /usr/lib/perl5/Apache2 needs to be in @INC.

Problem is, that I have no Apache/Server.pm on my computer. I tried
to reinstall mod_perl many times, but nothing help.

> You may want to look at 
> http://www.nowhere.dk/A::G/msg00803.html
> http://perl.apache.org/docs/2.0/user/intro/start_fast.html#Configuration
> http://perl.apache.org/docs/2.0/user/intro/start_fast.html#Handler_Modules (how to modify INC at run time)

I'l try it. Thanks
 
> 
> Also try running the following script inside and outside mod_perl.
> 
> #!/usr/bin/perl
> use strict;
> use CGI;
> # New query object
> my $q = new CGI;
> print $q->header, $q->start_html (-title=>'Show inc');
> print join "<br>", @INC;
> print $q->end_html;
> 
> 
> With the following lines in your apache config
> AddHandler cgi-script cgi
> AddHandler perl-script pl
> PerlResponseHandler ModPerl::Registry
> 
> .cgi is a normal non-modperl cgi script and .pl files are run in modperl.

-- 
 .''`. Ondra 'Kepi' Kudlik
: :' : Debian GNU/Linux User
`. `'
  `-   http://www.nosoftwarepatents.com/cz/m/intro/index.html 

_______________________________________________
users mailing list
users@xxxxxxxxxxxxxxxx
http://ufo.hestdesign.com/cgi-bin/mailman/listinfo/agusers