Page 1 of 2 12 LastLast
Results 1 to 20 of 26

Thread: Invalid command 'suPHP_UserGroup'

  1. #1
    Join Date
    Mar 2006
    Posts
    128

    Invalid command 'suPHP_UserGroup'

    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

  2. #2
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    6,782
    Try:
    Code:
    cd /usr/local/directadmin/custombuild
    ./build update
    ./build clean
    ./build suphp
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  3. #3
    Join Date
    Mar 2006
    Posts
    128
    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!

  4. #4
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    6,782
    May I take a look at your server?
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  5. #5
    Join Date
    Mar 2006
    Posts
    128
    Quote Originally Posted by smtalk View Post
    May I take a look at your server?
    Sure (and thanks), details coming via PM

    Ryan

  6. #6
    Join Date
    Oct 2005
    Posts
    35
    What was the resolution to this?

    This started happening after I updated DA today.

    Adam

  7. #7
    Join Date
    Oct 2005
    Location
    Montreal - Canada
    Posts
    296
    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/directa...tom/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 by duke28; 06-27-2007 at 11:36 PM.
    Richard Lincourt
    RapideNET.ca

  8. #8
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    6,782
    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:
    
    cd /usr/local/directadmin/custombuild
    ./build update
    ./build clean
    ./build suphp
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  9. #9
    Join Date
    Feb 2006
    Location
    Bosnia and Herzegovina
    Posts
    38
    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

  10. #10
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    6,782
    If they use new templates - they don't need to do that.
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  11. #11
    Join Date
    Feb 2006
    Location
    Bosnia and Herzegovina
    Posts
    38
    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...

  12. #12
    Join Date
    Mar 2006
    Posts
    128
    Just thought I would say thanks to Martynas for sorting the problem for me, he is a star!

    Ryan

  13. #13
    Join Date
    Dec 2006
    Posts
    11
    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?

  14. #14
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    6,782
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  15. #15
    Join Date
    Dec 2006
    Posts
    11
    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 ??

  16. #16
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    6,782
    How did you install suphp?
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  17. #17
    Join Date
    Dec 2006
    Posts
    11
    I don't remember cause maybe my friend install it but I'm sure I don't have custombuild. So should I install it?

  18. #18
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    6,782
    So, reinstall suPHP, and change "--with-setid-mode=owner" with "--with-setid-mode=paranoid", when you execute "./configure" command. Good luck!
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  19. #19
    Join Date
    Dec 2006
    Posts
    11
    ok it's working but now my phpmyadmin and webmails are not working on user accounts

    on main serwer it work fine.
    Last edited by gumiak; 07-22-2007 at 11:43 AM.

  20. #20
    Join Date
    Sep 2006
    Posts
    27
    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?

Page 1 of 2 12 LastLast

Similar Threads

  1. httpd wont start, Invalid command 'suPHP_UserGroup'
    By Martiny in forum CustomBuild
    Replies: 4
    Last Post: 09-19-2012, 08:22 AM
  2. Invalid command 'suPHP_Engine'
    By webaltern in forum CustomBuild
    Replies: 7
    Last Post: 08-29-2011, 12:31 AM
  3. Invalid command 'Order' - Httpd Stopped!
    By principino1984 in forum System-Level Technical Discussion
    Replies: 18
    Last Post: 11-05-2008, 09:35 AM
  4. Invalid command 'Header'
    By 320se in forum Apache (WWW)
    Replies: 0
    Last Post: 07-26-2007, 05:42 AM
  5. Invalid Command 'addmodule'
    By Aziz in forum Apache (WWW)
    Replies: 0
    Last Post: 07-12-2006, 08:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •