Results 1 to 5 of 5

Thread: CACHE folder and file permission problems

  1. #1
    vstokesjr is offline Senior Member
    Join Date
    Dec 2009
    Posts
    33

    Unhappy [SOLVED] CACHE folder and file permission problems

    Sugar CRM: 5.5.0 CE
    Platform: Linux/Apache (hosted)

    We are having a problem with Sugar CRM files created in the CACHE folder. Files are created with the permission set to 660 and not 644 and folder/directories are created with the permissions as 2771 and not 755.. Incorrect permissions causes dynamic content to not be displayed to the user.

    Example of the problem:
    A user navigates to Marketing->Campaign->(the campaign)->View Status
    ...and the pretty graph is not displayed. That's because the temporary user file in cache/xml folder has the permission set to 660 and not 644.

    As a band-aid fix, I have a cron job running every five minutes to correct permissions on files and folders in the SugarCRM/cache folder.

    I have been working with my hoster (SiteGround) and they claim it's a setting inside SugarCRM causing this problem and not them. I can't seem to find anything in SugarCRM that sets the permission of a new file or folder.

    Any suggestions?
    Last edited by vstokesjr; 2010-01-17 at 12:11 PM. Reason: update title to show resolved

  2. #2
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: CACHE folder and file permission problems

    Others may have a better idea but I would look at and make sure of the user being used to create the files. Is there some way that the web server is changing users for some reason with the dynamic content? i.e. is the file being created not owned by the apache or whatever your web server user is?

    have you checked the various cache directories and made sure the user/group is the correct one an ALL directories? i.e. is it apache:apache (or whatever)?? So not only look for the type 664 but the group owner.

    Otherwise this sound more like a Linux server issue not a sugar issue. Look into the code and find the function calls for this. Turn on your debugging and check the log at he point this happens, this may lead to the source of the problem.

    Good luck,
    Paris

  3. #3
    vstokesjr is offline Senior Member
    Join Date
    Dec 2009
    Posts
    33

    Default Re: CACHE folder and file permission problems

    Upon further investigation this was found:

    Code:
    include/utils.php file :
    
    'default_permissions' => array (
    'dir_mode' => 02770,
    'file_mode' => 0660,
    'chown' => '',
    'chgrp' => '',
    Now why in the hell is SUGAR playing with the permissions!?!
    This looks like a hack job to me.

    If SUGAR is going to set directory and file permissions then this should be configured in the config.php file!
    Last edited by vstokesjr; 2010-01-17 at 12:10 PM.

  4. #4
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: CACHE folder and file permission problems

    Hello,

    Read this topic http://www.sugarcrm.com/forums/showthread.php?t=56322 to the end.
    Letrium ltd. - Only high quality service
    http://letrium.com

  5. #5
    vstokesjr is offline Senior Member
    Join Date
    Dec 2009
    Posts
    33

    Default Re: CACHE folder and file permission problems

    Thank you!

    *EDIT

    May have spoken too soon. I noticed that every time you edit settings via ADMIN the permissions get reset in the config.php fie.
    Last edited by vstokesjr; 2010-01-17 at 04:58 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SugarCRM folder permission
    By cypress in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2007-12-22, 05:21 PM
  2. can't chmod cache folder => no mass emails
    By unomateo in forum Help
    Replies: 1
    Last Post: 2007-05-22, 11:27 PM
  3. How to cleanup Cache folder
    By rgurgel in forum Help
    Replies: 11
    Last Post: 2007-01-13, 09:14 PM
  4. Cache Folder Permission
    By breezy in forum Help
    Replies: 0
    Last Post: 2006-01-06, 09:08 PM
  5. jpgraph cache permission
    By rograham in forum Help
    Replies: 0
    Last Post: 2004-09-11, 08:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •