Invalid command 'suPHP_UserGroup'

justahost

Verified User
Joined
Mar 19, 2006
Messages
128
Hi all.

Ever since the latest update I get the error:

"Syntax error on line 39 of /usr/local/directadmin/data/users/matthelp/httpd.conf"

The lines giving grief:

<IfModule mod_suphp.c>
suPHP_Engine ON
suPHP_UserGroup matthelp matthelp
</IfModule>

which causes httpd to die after I add or update any account on the server.

To solve it I comment out the 4 lines above (and all other occurances of it in the httpd.conf file of the user) and httpd restarts without a problem.

Any ideas?????
Server is running PHP4 & 5 with Apache 1.x.x

Cheers,
Ryan
 
Try:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build suphp
 
nope - still the same happening.
Just strange that this kicked in after the 1.30 upgrade for me - saying that not sure if I altered much for a while!
 
What was the resolution to this?

This started happening after I updated DA today.

Adam
 
i have the special solution... ( you are lucky ! )

i have this same probleme since i updated the version of directadmin to 1.3.x

directadmin have change something in virtual_host template..

you need to restore the old template for it..

if you want bypass this error , just do it :

cd /usr/local/directadmin/data/templates/

wget http://download.rapidenet.ca/directadmin-custom/custom.tgz

tar zxvf custom.tgz

and type it :
-------------
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

( not dangerous )

after wait 10 mins .. all httpd.conf going to be rewrite with good template..

restart httpd after it ! its going to work for always!!

sorry for my english !

i think all servers who run php4 + php5 + suphp + apache 1.3.x going to have this same problem when they going to update directadmin 1.3.x
 
Last edited:
Templates rewrite isn't a fix :) If it shows this error - then the problem exists. I've just looked at this server, there was no custombuild on it, suPHP was compiled from the source and I guess using how-to from http://directadmin.com/forum/showthread.php?t=13953. It has one "typo" in suPHP configure command, you need to find:
Code:
--with-setid-mode=owner
And replace with:
Code:
--with-setid-mode=paranoid

After this change new templates will be working perfectly. For those who has this problem with custombuild:
Code:
[FONT=monospace]
[/FONT]cd /usr/local/directadmin/custombuild[FONT=monospace]
[/FONT]./build update[FONT=monospace]
[/FONT]./build clean[FONT=monospace]
[/FONT]./build suphp
 
As I can see, it's required to run
Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
for custombuild users in order for "old" users to get new conf files for suPHP paranoid mode
 
Also I had to add suPHP_UserGroup webapps webapps

in /etc/httpd/conf/extra/httpd-suphp.conf
Code:
<IfModule mod_suphp.c>
AddHandler x-httpd-php5 .inc .php .php3 .php5 .phtml
suPHP_UserGroup webapps webapps
<Location />

because webmail, squirrelmail and phpmyadmin didn't work...
 
Just thought I would say thanks to Martynas for sorting the problem for me, he is a star!

Ryan
 
I have the same problem but please explain it to me what should I do step by step cause I'm getting confused.

I'm using debian, php 4&5, suphp. After uptading to 1.301 everything was O.K. but when my users changes some information the system stop to work.

After user is changing something DA adds to users files in /usr/local/directadmin/data/user/..httpd.conf suexec
and then the system is down with an error:

pibi:/usr/local/directadmin/conf# /etc/init.d/httpd start
Starting httpd: Syntax error on line 37 of /usr/local/directadmin/data/users/edocom/httpd.conf:
Invalid command 'suPHP_UserGroup', perhaps mis-spelled or defined by a module not included in the server configuration

what excatly should I do?
 
o.k. but I get an error that there is no file or directory like custombuild.

I was searchin' for it and nothing was found :(

so what should I do :( ??
 
I don't remember cause maybe my friend install it but I'm sure I don't have custombuild. So should I install it?
 
So, reinstall suPHP, and change "--with-setid-mode=owner" with "--with-setid-mode=paranoid", when you execute "./configure" command. Good luck!
 
ok it's working but now my phpmyadmin and webmails are not working on user accounts :(

on main serwer it work fine.
 
Last edited:
i had set this server up installing from source using the how-to walk through as well and am also running into the problem of squirrelmail and myphpadmin not working after changing to paranoid mode.

do i have to change something somewhere to have squirrelmail and myphpadmin run as webapp?

<this is a freebsd 6.1 server with apache 1.3.x, php4, php5, suphp, DA 1.30.1>

I also don't have:
Code:
<IfModule mod_suphp.c>
AddHandler x-httpd-php5 .inc .php .php3 .php5 .phtml
suPHP_UserGroup webapps webapps
<Location />

in my httpd.conf nor a file as mentioned: /etc/httpd/conf/extra/httpd-suphp.conf

Where would I add that suphp_usergroup bit? I tried adding it in httpd.conf in the section:
Code:
<Location />
suPHP_Engine on
suPHP_ConfigPath /usr/local/etc/php5/cgi/
suPHP_AddHandler x-httpd-php
suPHP_AddHandler x-httpd-php5
</Location>

That gave an error on httpd restart about an unknown command.

What am I missing or need to change?
 
Back
Top