rebuild cache folder

Hi

Not sure what is going on but if I remove my cache folder when it gets rebuilt the user of the call_map.php is root and not apache so it fails to rebuild properly.  I have noticed that whenever sugar does something sometimes folder permissions change to 2770 and root as the user.  Can anyone help me as I cannot seem to nail down why this is happening. Apache is owner of all folder in the html folder I have checked with ls -l. 

If I remove the cache folder and login, it rebuilds cache folder with all folders contained within correctly with apache user apart from the /cache/cache folder which is root the permissions are 2770.  Then after a few mins I refresh the folder and the file class_map.php is suddenly owned by root.  If I make a quick repair and rebuild it fails at rebuilding mapping file.  If I then change the permission to apache of class_map.php and redo repair and rebuild it still fails.

Anything I can try to solve this please seems strange behaviour.  Modrewrite is on and set to the correct folder.

Thanks

Craig

Parents Reply
  • Hi Craig,

    I guess this occurs in CLI and your on root user while deleting the cache folder.. to prevent this just use the apache user just add sudo before the rm command.. but if it happens again your on root user.. you can change the properties of the cache folder, do command ->

    sudo chown -R  apache:apache *

    sudo find . -type d -exec chmod 775 {} \;

    sudo find . -type f -exec chmod 664 {} \;

    This fix is on linux side.. i got this command fix from Francesca.

    Regards,

    Longki

Children
No Data