ispCP - Board - Support
[SOLVED] Problem while reading /cache/... in SugarCrm - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [SOLVED] Problem while reading /cache/... in SugarCrm (/thread-10307.html)



[SOLVED] Problem while reading /cache/... in SugarCrm - michel128 - 04-08-2010 06:41 PM

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


RE: Problem while reading /cache/... in SugarCrm - kilburn - 04-08-2010 08:01 PM

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"


RE: Problem while reading /cache/... in SugarCrm - michel128 - 04-08-2010 08:23 PM

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.