in reply to Locale::Maketext::Lexicon not loading (Windows): permission denied

When I temporarily altered the die message at the bottom to add in the value of $@, I got the following:
Could not load Locale::Maketext::Lexicon: Cannot read D:\WAMP\Apache\A +pache2\htdocs\TopTable\Test\TopTable\root\locale\en_GB (called by Top +Table::Maketext): Permission denied at D:/WAMP/Perl/perl/site/lib/Cat +alyst/ScriptRunner.pm line 50.
I'm at a loss as to why this message is stopping it; the perl process is running under my logged in session and I can access the directory and the files in it without an issue; I've also (temporarily) given 'Everyone' modify access to the directory (although I'm sure it should only need to read) and that hasn't had any effect.

I would assume that the user that your Apache server runs as does not have read access to that directory. Maybe you want to investigate the groups that user is in and whether D: is a network mounted device and/or the Apache user account is a system account.

Also, from the appearance of htdocs in the path, it seems to me as if Apache might serve the contents of D:\WAMP\Apache\Apache2\htdocs\ and lower to the outside world. This strikes me as ill thought through.

Replies are listed 'Best First'.
Re^2: Locale::Maketext::Lexicon not loading (Windows): permission denied
by mkchris (Sexton) on Sep 07, 2015 at 15:54 UTC
    Ah sorry - I should have mentioned the fact I have it running in the Apache directory is just because that tends to be where I put my web stuff - this is just running on my laptop and the outside world has no access (I'm developing a Catalyst web site that will eventually run on CentOS). At the moment it's running via the Catalyst built-in web server (using HTTP::Server::PSGI). I'm running this directly under my own username, so no services are running under separate accounts.