Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: How to get use to follow symbolic links?

by rdfield (Priest)
on Nov 06, 2003 at 11:53 UTC ( [id://305025]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: How to get use to follow symbolic links?
in thread How to get use to follow symbolic links?

Ah, not quite what I meant - is it in the @INC inside mod_perl?

From the guide:

Regarding the setting of PerlPassEnv PERL5LIB in httpd.conf: if you turn on taint checks (PerlTaintCheck On), $ENV{PERL5LIB} will be ignored (unset). See the 'Switches -w, -T' section.
so I generally use a startup file to set the @INC I need at runtime under mod_perl: http://perl.apache.org/docs/1.0/guide/config.html#The_Startup_File.

rdfield

  • Comment on Re: Re: Re: How to get use to follow symbolic links?

Replies are listed 'Best First'.
Re: Re: Re: Re: How to get use to follow symbolic links?
by PetaMem (Priest) on Nov 06, 2003 at 12:18 UTC
    I guess so.

    The module I want the cgi to use is: PMLS::T9::Common.pm

    I get:

     Error message:
    Can't locate PMLS/T9/Common.pm in @INC (@INC contains:
    /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Apache2 
    /data/nlpdev/pm /data/nlpdev
    /usr/lib/perl5/5.8.0/i586-linux-thread-multi
    /usr/lib/perl5/5.8.0
    /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl) at
    /data/nlpdev/dia.cgi line 17, line 9. BEGIN
    failed--compilation aborted at /data/nlpdev/dia.cgi line 17, 
    line 9.
    
    but in /data/nlpdev/pm is a (working) symbolic link PMLS-> someotherdir

    Needless to say, that a cat /data/nlpdev/pm/PMLS/T9/Common.pm works. If I remove the Link and replace it with the directory it is pointing to, everything works. I see no error on my side.

    Bye
     PetaMem
        All Perl:   MT, NLP, NLU

      Are all the directories in /data/nlpdev/pm/PMLS/T9 world readable? Is Common.pm world readable? Apache/mod_perl runs as "nobody", so has limited ability to see files on the system.

      rdfield

        Oh man...the solution:

        Yes, Everything was world readable. Everything. Even the directories. But they were not world executable, so the cd to them failed for nobody... And I tried it of course as user, who was owner of these...

        Bye
         PetaMem
            All Perl:   MT, NLP, NLU

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://305025]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-19 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found