[clug-talk] Apache web server with cgi / perl scipts
Shawn
sgrover at open2space.com
Mon Dec 28 23:36:57 PST 2009
I can't speak much to Perl specifics with Apache - I've never done that.
But, permissions can be tricky.
If you do have a permissions problem, you *should* be getting a 403
error, not a 500. But on the off chance we are still dealing with
permissions, check to make sure the web service account has permission
on the parent directory AND that directory's parent. You *may* need to
make sure the service account has some permission right back to root,
though that is rare.
A 500 error suggests to me that the script itself is faulty. Perhaps
there is something about the runtime environment that is different?
Paths come to mind for that - the PATH for the ROOT user, or regular
user can be different than the PATH for a service account. Or perhaps
there is another environment variable needed, but not set for the
service account?
I've been bit by both these situations before and they were both a pain
to diagnose...
Not sure if I helped any, but maybe... :)
Shawn
Darcy Brodie wrote:
>>> 755 should give full access to the owner, read and execute to group and
>>> others, so even if the APACHE user does not have ownership, it should
>>> fall under the "other" permissions
More information about the clug-talk
mailing list