Litespeed and DirectAdmin

Discussion in 'General' started by fisher006, Jun 24, 2014.

  1. fisher006

    fisher006 New Member


    I have DirectAdmin and LiteSpeed on my server but i have problem suphp exec doesn't work.

    Script run on apache user

    This is my httpd.conf

    <VirtualHost xxx:80 >
            DocumentRoot /home/test/domains/
            ScriptAlias /cgi-bin/ /home/test/domains/
            UseCanonicalName OFF
            <IfModule !mod_ruid2.c>
                    SuexecUserGroup test test
            CustomLog /var/log/httpd/domains/ bytes
            CustomLog /var/log/httpd/domains/ combined
            ErrorLog /var/log/httpd/domains/
            <Directory /home/test/domains/>
                    suPHP_Engine ON
                    suPHP_UserGroup test test
  2. NiteWave

    NiteWave Administrator

    in fact, directives
    suPHP_Engine ON
    suPHP_UserGroup test test
    SuexecUserGroup test test
    etc are ignored by litespeed.

    litespeed's way to enable php suEXEC:
    lsws web admin --> Server -> General -> PHP suEXEC: Yes (or User's Home Directory Only -- this may be recommended for DirectAdmin User).
    You must select "No" which have lsphp running as apache user.
  3. fisher006

    fisher006 New Member

    I have:

    Running As user(apache) : group(apache)


    PHP suEXEC User's Home Directory Only

    PHPShell still show uid=498(apache) gid=500(apache) groups=500(apache),503(access)

    "You must select "No" which have lsphp running as apache user."

    where is this option ?
  4. mistwang

    mistwang LiteSpeed Staff

  5. fisher006

    fisher006 New Member

    I changed this value but php still works on apache user :(
    Cagefs also does not work.
    In Apache server all it's OK

    My settings

    Cloud Linux: CageFS
    PHP suEXEC: ( I tried everything ) NO / Yes / User's Home diectory
  6. NiteWave

    NiteWave Administrator

    the setting of public_html ?
    #ls -ald /home/test/domains/
  7. mistwang

    mistwang LiteSpeed Staff

    Maybe the best way is to let us login to your server with temp root access to investigate.
  8. fisher006

    fisher006 New Member

    drwxr-xr-x. 2 tester tester 4096 06-24 12:09 /home/tester/domains/

Share This Page