Current time: 11-17-2024, 09:01 PM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] Problem while reading /cache/... in SugarCrm
Author Message
michel128 Offline
Junior Member
*

Posts: 11
Joined: Feb 2010
Reputation: 0
Post: #1
[SOLVED] Problem while reading /cache/... in SugarCrm
Hello everybody,

I'm installing a SugarCrm on ispCp.

First, versions :
- Debian Lenny with latest updates
- ispCp 1.0.4 ( already functionnal for some other domains )
- SugarCrm 5.5.1 ( today build ) in the root of the virtual server

The installation of SugarCrm ran fine but I receive a 403 error whit any file in the http://crm.mydomain.tld/cache/ directory.

On a local server, same configuration but without ispCp, all is ok.

Any idea ?

Thank for your help.
More info, I've found the cause but i do not how to correct it.

While writing in the /cache, new directory has permissions rwxrws--- If I change to rwxrwxr-x and g-s, all run fine for files already in cache but not, of course, for new one !

Two solutions maybe :
1 - How can I change the permissions for new directories but only for that virtual server ?
2 - How can I allow the access to files with rwxrws--- ?
(This post was last modified: 04-08-2010 08:24 PM by michel128.)
04-08-2010 06:41 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: Problem while reading /cache/... in SugarCrm
Quote:While writing in the /cache, new directory has permissions rwxrws--- If I change to rwxrwxr-x and g-s, all run fine for files already in cache but not, of course, for new one !

Two solutions maybe :
1 - How can I change the permissions for new directories but only for that virtual server ?
2 - How can I allow the access to files with rwxrws--- ?

1. "rwxrws---" are not the default permissions for new folders, so it's SugarCRM who's purposedly applying them. Contact it's authors to see how can you change this behaviour.
2. You can't, and yes, the correct permissions would be "rwxrwxr-x", or even "rwxr-xr-x"
04-08-2010 08:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
michel128 Offline
Junior Member
*

Posts: 11
Joined: Feb 2010
Reputation: 0
Post: #3
RE: Problem while reading /cache/... in SugarCrm
Thank for your reply kilburn.

I've just found the solution. In the SugarCrm configuration file there is an array to set permissions on new folder and file. It should be :

'default_permissions' =>
array (
'dir_mode' => 0755,
'file_mode' => 0644,
'user' => '',
'group' => '',
),

Then, delete the cache folder and launch SugarCrm to rebuilt it.
04-08-2010 08:23 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)