suEXEC for Apache
Cory Spitz
spitzcor@egr.msu.edu
Tue, 24 Oct 2000 22:46:40 -0400 (EDT)
Hey all,
Has anybody been able to get suEXEC working with Apache? I can't seem to
get it to work. CGIs in the cgi-bin folder run as nobody, which is what
httpd runs as. The suexec file is owned by root and in root group with
file permissions 4711. The web page keeps saying to make sure that the
target UID/GID is the same as the UID/GID of the owner for the file. How
do I specify the target UID/GID? Do i *have* to use virtual hosts for
this? I could put the cgi in ~username/web, but with susexec enabled,
CGIs produce an Internal Server Error. I compiled susexec today
separately from the rest of apache and specified the log file to be
/usr/local/apache/logs/cgi.log, but nothing shows up there. I even
changed the ownership of that file to nobody:nobody (after 'touch
/usr/local/apache/logs/cgi.log'). Do my problems stem from the inability
of the suexec wrapper to use the mod_userdir module? Also, maybe because
I compiled it separately and copied it over like
http://www.apache.org/docs/suexec_1_2.html
The susexec root folder is /usr/local/apache and the cgi-bin folder is
/usr/local/apache/cgi-bin. There is a folder within cgi-bin which is
owned and only write-able by the intended user. Also, the cgi within is
owned and only write-able by the user.
(http://nightcrawler.cse.msu.edu/cgi-bin/spitzcor/showuser.cgi It just
does a 'whoami') So, I think I'm following the directions for suexec. I
just can't get it to work. Any help would be appreciated. Man, this is a
pain in the but.
Thanks
-Cory