Moving Log Files to Their Own Folders

    Overview

    When locking down file and folder permissions, it can be helpful to move Sugar log files to their own folder. Sugar, by default, writes log files to the root directory; it also rotates log files when they reach a certain size (10 MB). For this to function properly Sugar needs permission to create and modify files in the root folder. Some system administrators may not want to allow create and modify permissions on the root folder.

    Note: The steps listed below apply to Sugar 5.1.0 and later versions. To address this situation you can create a dedicated “log” folder with the required permissions.

    Steps to Complete

    1. Create a new folder named “log” in the SugarCRM root directory
    2. Grant the required permissions for this folder to the web server user
    3. Login as an admin user to SugarCRM
    4. Navigate to Admin > System Settings
    5. Scroll to the bottom of the page
    6. Set “Log File Name” to “log/sugarcrm”
    7. Click Save

    Sugar will now write log files to the log folder. For more information regarding setting file and folder permissions please refer to the following articles:

    • Required file system permissions on Windows with IIS
    • Required file system permissions on Linux
    in Platform Management

    Reach out to us for help