LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > Permission issues with SugarCRM

Reply
 
Thread Tools Display Modes
  #1  
Old 11-02-2011, 04:06 AM
J.T. J.T. is offline
Member
 
Join Date: Apr 2010
Posts: 47
Default Permission issues with SugarCRM

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?
Reply With Quote
  #2  
Old 11-02-2011, 05:50 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
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
Reply With Quote
  #3  
Old 11-02-2011, 09:57 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
do something like
Quote:
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.

Quote:
Originally Posted by J.T. View Post
...
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?
Reply With Quote
  #4  
Old 11-05-2011, 06:52 AM
J.T. J.T. is offline
Member
 
Join Date: Apr 2010
Posts: 47
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:11 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.