Permission issues with SugarCRM

Discussion in 'PHP' started by J.T., Nov 2, 2011.

  1. J.T.

    J.T. Well-Known Member

    Hi,

    I have a virtual host dedicated ot one SugarCRM CE 6.2.4 install. I keep getting minor permission issues which I can't see the origin of.

    VH settings:

    ExtApp Set UID Mode DocRoot UID

    The owner of the docroot is lsadm:lsadm

    So based on that simple info, I understand LSWS executes this PHP script as lsadm and should therefore have write access to folders owned by lsadm. But it's not.

    2011-11-02 10:45:03.887 [ERROR] [HTAccess] Failed to open [/home/websites/domain.com/public/crm/sugar/include/SugarCharts/Jit/.htaccess]: Permission denied

    Yet:

    -rw-r--r-- 1 lsadm lsadm 0 Nov 2 10:28 .htaccess

    Even if I chmod to 755

    -rwxr-xr-x 1 lsadm lsadm 0 Nov 2 10:28 .htaccess

    The same issue remains.

    So why am I getting these issues?
     
  2. NiteWave

    NiteWave Administrator

    lsadm is used to access lsws admin console:)7080) by design, not intended for normal websites(port 80).

    if litespeed is running as nobody user, change the document owner to nobody.

    #chown -R nobody:nobody /home/websites/domain.com/public
     
  3. webizen

    webizen Well-Known Member

    do something like
    it is possible user lsadm does not have any permission on one of the parents.

     
  4. J.T.

    J.T. Well-Known Member

    Thanks.

    So is there an advantage to making doc root UID nobody for all vhosts, or would you advise they are unique for each vhost?

    I have lke 12 vhosts in:

    /home/websites/domain1.com
    /home/websites/domain2.com
    /home/websites/domain3.com
    /home/websites/domain4.com
    etc.

    All lsadm:lsadm
     

Share This Page