lanta has asked for the wisdom of the Perl Monks concerning the following question:
For a CGI script, I need to use Perl installed in a user directory. The webserver user("apache" in my case) has access to the directory( /home/some_user/perl/bin ) and can stat the files in that location from the command line. While running the script the user is not able to stat the directory. I wrote the following script to test
#!/bin/bash echo Content-type: text/plain echo "" echo "I am " whoami stat /home/some_user
I am Apache stat: cannot stat '/home/some_user': Permission denied.
Any ideas?
EnvironmentCGI(not mod_perl) Redhat 2.6.32 Apache 2.2.15
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: OT: Local Perl - CGI - Apache.
by stevieb (Canon) on Nov 24, 2015 at 23:46 UTC | |
by lanta (Sexton) on Nov 25, 2015 at 00:25 UTC | |
|
Re: [OT] Apache cannot stat home dirs (was: OT: Local Perl - CGI - Apache.)
by hippo (Archbishop) on Nov 25, 2015 at 09:24 UTC | |
by lanta (Sexton) on Dec 02, 2015 at 23:11 UTC |