dragonchild has asked for the wisdom of the Perl Monks concerning the following question:

I've got a handler in MP 1.x that do'es a file to load in subroutines and a hashref. If I do a file located within ServerRoot, -f finds the file just fine. However, if I go outside ServerRoot to my home directory, -f doesn't find the file. What am I missing?

I'm using the latest Apache/MP builds with default parameters. The handler is Apache::XMLRPC which is part of the Frontier::RPC2 distribution version 0.07b4.

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

  • Comment on -f on a file outside of ServerRoot and mod_perl 1.x

Replies are listed 'Best First'.
Re: -f on a file outside of ServerRoot and mod_perl 1.x
by dug (Chaplain) on Jun 30, 2004 at 15:30 UTC
    Works fine for me with the debian 1.29 package. Are your home directory permissions 700 perchance?

    -- Douglas Hunter
      Thank you! My permissions were 744. Changing them to 755 fixed it. (I was wondering why I could run it as me, but not as www ...)

      ------
      We are the carpenters and bricklayers of the Information Age.

      Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

      I shouldn't have to say this, but any code, unless otherwise stated, is untested

Re: -f on a file outside of ServerRoot and mod_perl 1.x
by Joost (Canon) on Jun 30, 2004 at 15:32 UTC