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