cgi user home directory issue

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Shadow
Date:  
Subject: cgi user home directory issue
Kimi,

I recreated the problem as best I could on my own server and found the
exact same problem. Turns out that apache checks user and group
ownership for the script and the parent cgi-bin directory. They both
MUST be owned by the same user and group. Just do a chown -R user.group
/home/user to correct it.

For more info:

http://www.redhat.com/support/resources/faqs/RH-apache-FAQ/c14.html


> Can't figure this one out. I have a user that was just created. We
> want to run a test script under that user's home directory,
> specifically trying to achieve in the end database access. I get a
> Premature end of script headers and reference to the path. I can
> move those scripts around and get other error messages, but at least
> it's 'touching' the script. In the httpd.conf, Options is set to
> ExecCGI, allow from all. The UserDir section is set to read only
> though. I do not know if this matters, but I have tried to update
> this in different lines with no change. Secondly, even though there
> is a <Limit xxxxx> line, it doesn't include the ExecCGI specifically
> to not run. Adding the ExecCGI anywhere under this UserDir portion
> does nothing. There doesn't seem to be any reason for this to not
> work.
>
> Under the spot that controls who gets to access stuff on the server,
> the line for Directory is set correctly, I believe. It's <Directory
> /home/*/*/cgi-bin/> and <Directory /home/*/*/*/>. Google search
> comes up with some tips but all of those are set as it should be.



-- 
Chris Lewis

----------------------------------------
If it compiles, it is good, if it boots up it is perfect.
      - Linus Torvalds
----------------------------------------