[suPHP] Using suPHP with non real system users

Jorge Bastos mysql.jorge at decimal.pt
Fri May 23 10:21:23 CEST 2008


Yes it exists, it's the apache's user:

flecha:~# id  www-data
uid=10001(www-data) gid=10001(www-data) grupos=10001(www-data)





> -----Original Message-----
> From: Brock Noland [mailto:brockn at gmail.com]
> Sent: sexta-feira, 23 de Maio de 2008 4:57
> To: Jorge Bastos
> Cc: suphp at lists.marsching.biz
> Subject: Re: [suPHP] Using suPHP with non real system users
> 
> On Thu, May 22, 2008 at 6:16 AM, Jorge Bastos <mysql.jorge at decimal.pt>
> wrote:
> >
> > So, I compiled suphp with:
> >
> >
> > sh configure --with-apxs=/usr/bin/apxs2 --with-min-uid=5000
> > --with-min-gid=4901 --with-apache-user=www-data
> > --with-logfile=/var/log/suphp/suphp.log CPPFLAGS=-I/usr/include/apr-0
> > --sysconfdir=/etc/suphp --disable-checkuid --disable-checkgid
> > --with-setid-mode=paranoid --disable-checkpath
> >
> > /etc/suphp/suphp.conf is attached.
> >
> > I must remember that I use a different handler for .phpx files.
> >
> > The suphp module is being loaded like this:
> >
> > LoadModule suphp_module /usr/lib/apache2/modules/mod_suphp.so
> >
> > And in the virtualhost I have:
> >
> > <VirtualHost *>
> >        suPHP_Engine on
> >        AddType application/x-httpd-phpx .phpx
> >        suPHP_AddHandler application/x-httpd-phpx
> >        <IfModule mod_suphp.c>
> >                suPHP_UserGroup #5058 #4901
> >        </IfModule>
> 
> I have not had time to try you configuration. Hopefully this weekend I
> will have time. However, in the mean time, I see you are specifying
> the same gid as you specified in your build configuration. Can you try
> a higher gid?
> 
> Also, in your suphp.conf you specify, www-data, does that user exist
> on your system?
> 
> Brock




More information about the suPHP mailing list