Re: Apache 2 + mod_perl + virtual host problems

[prev] [thread] [next] [Date index for 2005/02/22]

From: Bruno Lavoie
Subject: Re: Apache 2 + mod_perl + virtual host problems
Date: 02:53 on 22 Feb 2005
now strange, i changed nothing, restarted server twice, and the server
wants me to download the script rather than execute it.......

let's look at my config files at:

http://w3.ift.ulaval.ca/~brlav35/apache2conf/

the main 2 files are :

apache2.conf 
/sites-enabled/000-default

i hope someone find my problem

Bruno

On Mon, 21 Feb 2005 21:40:36 -0500, Stas Bekman <stas@xxxxxx.xxx> wrote:
> Bruno Lavoie wrote:
> > OK,
> >
> > i'm not a mod_perl hacker, but i've installed a Apache2 + mod_perl2
> > under a FreeBSD VMWare to test, i used the same mod_perl2
> > configuration...... same script!  I copy paste this config in the
> > global server config or default vhost:
> >
> > #
> > ####
> > PerlModule ModPerl::PerlRun
> > Alias /perl-run/ /usr/local/www/perl/
> > <Location /perl-run>
> >     SetHandler perl-script
> >     PerlResponseHandler ModPerl::PerlRun
> >     PerlOptions +ParseHeaders
> >     Options +ExecCGI
> > </Location>
> >
> > as you can see, it's very basic! It works on FreeBSD not under Debian
> > Sarge.... the same error,
> >
> > [Mon Feb 21 21:27:41 2005] [error] /usr/local/www/perl/test.pl not
> > found or unable to stat
> >
> > and when i do a 'cat /usr/local/www/perl/test.pl' the file exists,
> > executable, etc...... everything is OK, if it runs under
> > Registry.......
> >
> > but check out my different HEAD output
> >
> > FreeBSD :
> > Server: Apache/2.0.53 (FreeBSD) mod_perl/1.999.20 Perl/v5.8.6
> >
> > Debian:
> > Server: Apache/2.0.52 (Debian GNU/Linux) mod_perl/1.999.20 Perl/v5.8.4
> >
> > Can the perl version change anything? can the apache version change anything?
> > I can post all my debian apache 2 config files......... if it's necessary
> 
> it's hard to tell, I prefer debugging:
> 
> > or with you Stas, i can jump into debuging like the way you talked in
> > the last post...
> 
> Actually it's easier that that. the error comes from RegistryCooker.pm:
> 
> sub can_compile {
>      my $self = shift;
>      my $r = $self->{REQ};
> 
>      unless (-r $r->my_finfo && -s _) {
>          $self->log_error("$self->{FILENAME} not found or unable to stat");
>          return Apache::NOT_FOUND;
>      }
> 
> and my_finfo later on:
> 
> # XXX: should go away when finfo() is ported to 2.0 (don't want to
> # depend on compat.pm)
> sub Apache::RequestRec::my_finfo {
>      my $r = shift;
>      stat $r->filename;
>      \*_;
> }
> 
> so what do you get in error log if you dump this:
> 
>    warn "filename: ". $r->filename . "\n";
> 
> --
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
>

(message missing)

Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 13:40 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 14:58 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Perrin Harkins 18:13 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 18:31 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Perrin Harkins 18:38 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Stas Bekman 01:39 on 22 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 15:11 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Perrin Harkins 18:09 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 18:54 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Perrin Harkins 19:42 on 21 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Stas Bekman 01:49 on 22 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 02:28 on 22 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Stas Bekman 02:40 on 22 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 02:53 on 22 Feb 2005

Re: Apache 2 + mod_perl + virtual host problems
Bruno Lavoie 04:41 on 22 Feb 2005

Generated at 12:48 on 22 Feb 2005 by mariachi v0.52