Re: Why mod_perl does not like File::Recurse module?

2000-07-12 Thread Alexei V. Barantsev

Ken Williams <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] (Alexei V. Barantsev) wrote:
> 
> >Jerrad Pierce <[EMAIL PROTECTED]> writes:
> >
> >> > On 11 Jul 2000, Alexei V. Barantsev wrote:
> >> > 
> >> > > >From command line all is ok
> >> > > 
> >> > > Untitled Document
> >> > > File::Copy::copydir  ok
> >> > > File::Recurse::recurse  ok
> >> > > 
> >> > > In mod_perl I have the the different result
> >> > > 
> >> > > Untitled Document
> >> > > File::Copy::copydir  ok
> >> > > File::Recurse::recurse  failed
> >> > > 
> >> > > Why mod_perl does not like File::Recurse module???
> >
> >This script works right from command line if I run it as 'apache' -
> >user account I have specially for httpd.
> >
> >But the scripts failed to find File::Recurse::recurse if running under
> >usual mod_cgi!

Sorry, it was disinformation, under mod_cgi the script works as
expected, all is ok, the problem appears only in mod_perl environment.

> >By the way, %File::Recurse:: contains symbol for 'recurse', so I can't
> >understant why it is not defined...
> 
> 
> It seems like you're loading two different modules, perhaps.  Try
> printing out $INC{'File/Recurse.pm'} and see whether it's different
> under command line (or CGI) & mod_perl.

I'm loadind the same module, in both cases
$INC{'File/Recurse.pm'} eq /usr/lib/perl5/site_perl/5.005/File/Recurse.pm

> Also, make doubly sure that your mod_perl & standalone perl are using
> the same perl binary.  Do you have more than one?

I have only one perl executable, version 5.005_03 built for i386-linux

I could not understand the following: %File::Recurse:: contains symbol
for 'recurse' but none of ($|@|%|&)recurse is defined. Is it possible
to ask perl FOR WHAT have it created this symbol?

-- 
ab
ICQ: 3959207



Re: Why mod_perl does not like File::Recurse module?

2000-07-12 Thread Ken Williams

[EMAIL PROTECTED] (Alexei V. Barantsev) wrote:

>Jerrad Pierce <[EMAIL PROTECTED]> writes:
>
>> But nobody is typically a rather priveleged account...
>> 
>> > 
>> > On 11 Jul 2000, Alexei V. Barantsev wrote:
>> > 
>> > > >From command line all is ok
>> > > 
>> > > Untitled Document
>> > > File::Copy::copydir  ok
>> > > File::Recurse::recurse  ok
>> > > 
>> > > In mod_perl I have the the different result
>> > > 
>> > > Untitled Document
>> > > File::Copy::copydir  ok
>> > > File::Recurse::recurse  failed
>> > > 
>> > > Why mod_perl does not like File::Recurse module???
>> > 
>> > Probably permissions.  Under mod_perl you are running as "nobody".
>> > - Perrin
>> > 
>
>No, the problem is not in permissions. And not in mod_perl :(
>
>This script works right from command line if I run it as 'apache' -
>user account I have specially for httpd.
>
>But the scripts failed to find File::Recurse::recurse if running under
>usual mod_cgi!
>
>By the way, %File::Recurse:: contains symbol for 'recurse', so I can't
>understant why it is not defined...


It seems like you're loading two different modules, perhaps.  Try
printing out $INC{'File/Recurse.pm'} and see whether it's different
under command line (or CGI) & mod_perl.

Also, make doubly sure that your mod_perl & standalone perl are using
the same perl binary.  Do you have more than one?


  ------
  Ken Williams Last Bastion of Euclidity
  [EMAIL PROTECTED]The Math Forum





Re: Why mod_perl does not like File::Recurse module?

2000-07-12 Thread Alexei V. Barantsev

Jerrad Pierce <[EMAIL PROTECTED]> writes:

> But nobody is typically a rather priveleged account...
> 
> > 
> > On 11 Jul 2000, Alexei V. Barantsev wrote:
> > 
> > > >From command line all is ok
> > > 
> > > Untitled Document
> > > File::Copy::copydir  ok
> > > File::Recurse::recurse  ok
> > > 
> > > In mod_perl I have the the different result
> > > 
> > > Untitled Document
> > > File::Copy::copydir  ok
> > > File::Recurse::recurse  failed
> > > 
> > > Why mod_perl does not like File::Recurse module???
> > 
> > Probably permissions.  Under mod_perl you are running as "nobody".
> > - Perrin
> > 

No, the problem is not in permissions. And not in mod_perl :(

This script works right from command line if I run it as 'apache' -
user account I have specially for httpd.

But the scripts failed to find File::Recurse::recurse if running under
usual mod_cgi!

By the way, %File::Recurse:: contains symbol for 'recurse', so I can't
understant why it is not defined...

-- 
ab
ICQ: 3959207



RE: Why mod_perl does not like File::Recurse module?

2000-07-11 Thread Perrin Harkins

On Tue, 11 Jul 2000, Jerrad Pierce wrote:

> But nobody is typically a rather priveleged account...

Permissions are permissions.  If you want the nobody user to read the
files and directories, they have to be accessible by that user.

> > > Why mod_perl does not like File::Recurse module???
> > 
> > Probably permissions.  Under mod_perl you are running as "nobody".
> > - Perrin





RE: Why mod_perl does not like File::Recurse module?

2000-07-11 Thread Jerrad Pierce

But nobody is typically a rather priveleged account...

> -Original Message-
> From: Perrin Harkins [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 11, 2000 2:45 PM
> To: Alexei V. Barantsev
> Cc: [EMAIL PROTECTED]
> Subject: Re: Why mod_perl does not like File::Recurse module?
> 
> 
> On 11 Jul 2000, Alexei V. Barantsev wrote:
> 
> > >From command line all is ok
> > 
> > Untitled Document
> > File::Copy::copydir  ok
> > File::Recurse::recurse  ok
> > 
> > In mod_perl I have the the different result
> > 
> > Untitled Document
> > File::Copy::copydir  ok
> > File::Recurse::recurse  failed
> > 
> > Why mod_perl does not like File::Recurse module???
> 
> Probably permissions.  Under mod_perl you are running as "nobody".
> - Perrin
> 



Re: Why mod_perl does not like File::Recurse module?

2000-07-11 Thread Perrin Harkins

On 11 Jul 2000, Alexei V. Barantsev wrote:

> >From command line all is ok
> 
> Untitled Document
> File::Copy::copydir  ok
> File::Recurse::recurse  ok
> 
> In mod_perl I have the the different result
> 
> Untitled Document
> File::Copy::copydir  ok
> File::Recurse::recurse  failed
> 
> Why mod_perl does not like File::Recurse module???

Probably permissions.  Under mod_perl you are running as "nobody".
- Perrin