Litespeed and DirectAdmin

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

  1. fisher006

    fisher006 New Member

    Hello,

    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

    Code:
    
    <VirtualHost xxx:80 >
            ServerName www.test.com
            ServerAlias www.test.com test.com
            ServerAdmin webmaster@test.com
            DocumentRoot /home/test/domains/test.com/public_html
            ScriptAlias /cgi-bin/ /home/test/domains/test.com/public_html/cgi-bin/
            UseCanonicalName OFF
            <IfModule !mod_ruid2.c>
                    SuexecUserGroup test test
            </IfModule>
            CustomLog /var/log/httpd/domains/test.com.bytes bytes
            CustomLog /var/log/httpd/domains/test.com.log combined
            ErrorLog /var/log/httpd/domains/test.com.error.log
            <Directory /home/test/domains/test.com/public_html>
                    suPHP_Engine ON
                    suPHP_UserGroup test test
            </Directory>
    </VirtualHost>
    
    
    
  2. NiteWave

    NiteWave Administrator

    in fact, directives
    suPHP_Engine ON
    suPHP_UserGroup test test
    and
    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)

    and

    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/test.com/public_html
  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/tester.com/public_html

Share This Page