ISP changes file owners rights resulting in tmp/cache problems

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
RickB

ISP changes file owners rights resulting in tmp/cache problems

Post by RickB »

Hi,

My ISP daily changes the file owners rights on all the files of my client thus resulting in files that can't be accessed. I tried adding chmod 777 to it, but i can't see any changes too it when i look to the file rights when logged in onto the shell. it keeps being -rw-r--r--    1 nobody  other

when the scripts has been run, the owner shows -> login:users


anyone an idea?

Best Regards
Rick B, Netherlands
RickB

Re: ISP changes file owners rights resulting in tmp/cache problems

Post by RickB »

sorry, the files it concernes are in TMP_CACHE_LOCATION (also known as /tmp/cache/)
addcontent.php, addtemplate.php, editcontent.php, edittemplate.php


I added chmod($tmpfname, 0777) and the end of these lines:

$handle = fopen($tmpfname, "w");
fwrite($handle, serialize($data));
fclose($handle);
Locked

Return to “CMSMS Core”