View Full Version : Problems installing SuPHP - suPHP_UserGroup not added to all users httpd.conf

02-10-2008, 07:46 AM

We just installed SuPHP on all our servers and it was done successfully without any hiccups except on one server.

Server was originally running FreeBSD 6.1, PHP 4.4.8, Apache 1.3.

When using the custombuild script with PHP 4 as CGI & Apache 1.3, basically only some of the user httpd confs had the SuPHP directives added, whilst others were missing. Running the "./build rewrite_confs" didn't help. Wouldn't be a problem if it was only a few accounts but this server has over 800 user accounts.

Tried everything - check templates, check SuPHP conf, run custombuild with PHP 5 as CGI, Apache 2.0, Apache 2.2 etc etc etc and after 12 hours or so, gave up and had to revert to using customapache to cleanly build PHP 4 and Apache 2.0, and then used custombuild to build PHP 4 CLI and Apache 2.0.

So has anyone else had this problem of not all user accounts having SuPHP directives written? Any ideas what the problem may be and what the resolution may be?

All input very much appreciated.


02-10-2008, 10:19 AM
Check if you don't have any custom templates in /usr/local/directadmin/data/templates folder. You can try to rewrite user's httpd configuration files manually too:

echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d

02-10-2008, 02:30 PM
Lo and behold, I actually did have some custom templates! I must have set them up long time ago and forgot about them.

Thanks for the tip :)