Suexec "not working"

I think I’ve been messing around with suexec in some update (or maybe my boss did, he has root access) :stuck_out_tongue: and now suexec “isn’t working” (I think)

Theoretically, with suexec activated, each site apache process should run with it’s own user, isn’t it?

Now, al processes are running with www-data and the suexec log has stopped having new lines some days ago. Also wordpress stopped autoupdating, because WP autoupdates needs its files to be the same user than the www server it’s running.


I have Ubuntu 10.04
I have suexec-custom with the first config line pointing to /home
I have enabled suexec in apache ( a2enmod suexec )
Past week suexec looked fine:

... [2011-01-28 19:40:38]: uid: (1000/kanteron) gid: (1000/kanteron) cmd: php5.fcgi [2011-01-29 16:08:32]: uid: (1000/kanteron) gid: (1000/kanteron) cmd: php5.fcgi [2011-01-29 17:38:16]: uid: (1000/kanteron) gid: (1000/kanteron) cmd: php5.fcgi ...

Apache error log says suexec is loaded:

[Fri Feb 04 13:48:48 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)

What’s happening? Any clue?


Take a look at /etc/apache2/mods-enabled/php5.conf – do you see any “SetHandler” lines in there?

If so, those could cause what you’re seeing, and should be commented out. If you make changes to that file, be sure to restart Apache afterward (with “/etc/init.d/apache2 restart”).