Permission issues with SugarCRM

J.T.

Well-Known Member
#1
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?
 

NiteWave

Administrator
#2
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
 

webizen

Well-Known Member
#3
do something like
ls -ld /home/websites/domain.com/public/crm/sugar/include/SugarCharts/Jit
or 'ls -ld /path/to/any/parent/dir/of/Jit'
it is possible user lsadm does not have any permission on one of the parents.

...
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?
 

J.T.

Well-Known Member
#4
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
 
Top