Apache/CGI new error?

2000-12-10 Thread Eireann Lewy
Okay... well, I changed the script somewhat and it should have worked
but didn't. When I looked in suexec.log, I found this:

[2000-12-10 12:36:36]: uid: (max/max) gid: (max/max) cmd: finger.cgi
[2000-12-10 12:36:36]: cannot get docroot information (/home/max)

This is the guy who has the script I showed you the other day. So what
does this error mean?  What do I need to do about it?

Erin



Re: Apache/CGI new error?

2000-12-10 Thread Nate Amsden
Eireann Lewy wrote:
 
 Okay... well, I changed the script somewhat and it should have worked
 but didn't. When I looked in suexec.log, I found this:

i always found suexec to be more of a pain then its worth..i always turn
it off on my boxes.

try it, the script will probably work then :)

nate

-- 
:::
ICQ: 75132336
http://www.aphroland.org/
http://www.linuxpowered.net/
[EMAIL PROTECTED]



Re: Apache/CGI new error?

2000-12-10 Thread Eirik Dentz
I don't know if you've seen this article or not, but along with the suexec
documentation at apache.org, I found it to be very helpful while I was
setting up apache with suexec for a RedHat system at work.


http://www.linuxplanet.com/linuxplanet/tutorials/1445/1/

I've been trying to set up apache with suexec support enabled on my debian
system, but I'd like to set up document root to be in the /home/[username]
directory (as you have it) rather than the debian default /var/www.  I
imagine that you had to use source .debs in order to customize the layout?
Any suggestions on how you went about this would be appreciated.

eirik

 on 12/10/00 12:34 PM, Eireann Lewy at [EMAIL PROTECTED] wrote:

 Okay... well, I changed the script somewhat and it should have worked
 but didn't. When I looked in suexec.log, I found this:
 
 [2000-12-10 12:36:36]: uid: (max/max) gid: (max/max) cmd: finger.cgi
 [2000-12-10 12:36:36]: cannot get docroot information (/home/max)
 
 This is the guy who has the script I showed you the other day. So what
 does this error mean?  What do I need to do about it?
 
 Erin
 



Re: Apache/CGI new error?

2000-12-10 Thread Eirik Dentz
Hmm, I'm not completely sure about this, since I'm relatively inexperienced
with apache, but I think that part of your problem with suexec, might be
that it was compiled with /var/www as its document root.  (I thought that
you had found some way to change the layout for Apache and suexec by
recompiling them from source before installing them as .debs)

I believe that in order to get .cgi scripts to work properly with suexec
enabled, you have to have them running under the docroot which was
configured when Suexec and apache were originally compiled.  I don't know if
there is any way to tell what docroot was compiled into suexec, unless you
do it yourself.

Please let me know if any of this is inaccurate.  Perhaps someone else out
there can shed some more light on this?


eirik

on 12/10/00 4:08 PM, Eireann Lewy at [EMAIL PROTECTED] wrote:

 On Sun, Dec 10, 2000 at 03:41:40PM -0500, Eirik Dentz wrote:
 I've been trying to set up apache with suexec support enabled on my debian
 system, but I'd like to set up document root to be in the /home/[username]
 directory (as you have it) rather than the debian default /var/www.  I
 imagine that you had to use source .debs in order to customize the layout?
 Any suggestions on how you went about this would be appreciated.
 
 eirik
 
 Not at all.  If you want the main pages for the site (i.e. the front
 page and all non-user-specific pages) in someplace other than /var/www
 you simply change all instances of the DocumentRoot variable to the name
 of that directory. As far as I can tell, for my slightly outdated
 version of apache, this occurs once near the end of httpd.conf, once in
 access.conf  and once in srm.conf
 
 I learned the hard way that you have to make sure that you have to make
 sure you change all instances of DocumentRoot--any one contradiction
 will just keep it at the default setting.
 
 As for having the users under home directories--every user on the
 machine has a home directory because I adduser'd everyone.  Then, if you
 want to do something like having html files looked for by the server in
 some directory other than home (for instance /home/eirik/html) you
 change all instances of UserDir to reference that directory i.e.
 UserDir html (it already knows to look under the /home/user since each
 user is separate.  This UserDir variable is in srm.conf, with a Module
 called userdir_module being loaded by httpd.conf. Of course, if you have
 later versions of apache than I do, then you will find all of this in
 one file, but remember to change all instances.
 
 Erin