http://qs1969.pair.com?node_id=1140378


in reply to Re^5: apache 2.4 mod_perl permission denied on standard modules
in thread apache 2.4 mod_perl permission denied on standard modules

Gah I wish I'd known this:

As soon as Perl encounters such a directory, it will stop searching/

Found a directory in INC that was readable but not executable; changed to 755 and we're past the issue.

Still have to figure out why that directory is in INC in the first place; it's not in there when I check INC from the shell, and I don't see it anywhere in the apache config.

But things are working now. Thanks to both of you!

Replies are listed 'Best First'.
Re^7: apache 2.4 mod_perl permission denied on standard modules
by sundialsvc4 (Abbot) on Aug 31, 2015 at 01:37 UTC

    Hmm... you are right about that, and it certainly is not intuitive that Perl would “stop searching.”   Thanks for pointing that out.

      As a final follow-up. This is apparently new behaviour and mentioned in the perl 5.18 release notes:

      When require encounters an unreadable file, it now dies. It used to ignore the file and continue searching the directories in @INC [perl #113422].