[suPHP] Using suPHP with non real system users
Brock Noland
brockn at gmail.com
Fri May 23 05:57:07 CEST 2008
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