[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache suexec



On Mon, Sep 09, 2002 at 03:36:33PM -0700, Forrest English wrote:
> Is there a way to run apache in suexec mode without compiling by hand?   I
> havn't used the debian packages of apache in awhile because i started
> compiling from source awhile ago to keep scripts running as the user who
> owns the script.  But I'm tired of compiling, and if i can use the .deb's,
> that'd be great.  

Even if you have to recompile, it's fairly painless:

cd /usr/src
apt-get source apache
cd apache-1.3.26/
vi debian/rules
    (set --suexec-docroot=/where/you/want)
fakeroot debian/rules binary
 
> Anyhow, so anyone know if there's a way to make apache debs run
> su-exec?  thanks.

The debs already have suexec, but the suexec-docroot is set to /var/www or
something like that.  If that's not what you want, you'll have to
recompile.  Just make sure you save a backup copy of /usr/lib/apache/suexec
so you can fix it when the next minor release comes out and 'apt-get upgrade'
overwrites your custom suexec binary.



Reply to: