Thu Jan 14 08:06:23 CET 2010

Apache suexec

Why doesn't this work properly?  I want to run a wordpress instance as
a separate user, but I get this error message:

Warning: SuexecUserGroup directive requires SUEXEC wrapper.

Running php scripts through suexec requires them to be handled as CGI
scripts.  See here[1] for howto.

  apt-get install apache2-suexec-custom

Otoh, it might be simpler to use suphp.  Also [1] explains.

  apt-get install libapache2-mod-suphp

The default debian install enables suphp for all directories, but
turns it off for /usr/share.  Let's see if it works.

In /etc/suphp/suphp.con set docroot=/home
In /etc/apache2/mods-available/suphp.con enable the /home dir.

[1] http://alain.knaff.lu/howto/PhpSuexec/