SugarCRM 7.8 Caching Error

I Accidentally deleted the javascript folder in /cache/javascript and as a result, I'm having this error: 

PHP Fatal error:  sugar_file_put_contents_atomic() : fatal rename failure '/tmp/tempdvDgA7' -> 'cache/javascript/base/components_46673564da4008e1337049d14a80d8d2.js' in /var/www/html/sugar7/include/utils/sugar_file_utils.php on line 171,

Anyone have any idea what should I do to enable my instance to recache again?

Parents Reply
  • Ok and just to confirm 'lance001' is the user that Apache is running as? Does this user have access to /tmp/ and ./cache/* ? The default Apache user depending on the OS usually is 'www-data' or 'apache' but this can be changed in the apache configuration so I want to double check that you changed the apache user since otherwise it might not have permission to change the files.

    My steps would be: 

    1. Confirm the apache user and group that is running on the server

    2. Make sure this is reflected in the config files

    3. Reapply the ownership on the Sugar directory with  

    chown -R <apache user>:<apache group> /path/to/sugar

    Let me know if that worked. 

Children
No Data