Wednesday, June 10, 2015

Re: Console, shell and cronjob woes

Hi Paul,

The 777 indeed the quick fix of doing it :(

or 


Andras

On Jun 10, 2015, at 4:01 AM, phpMagpie <paul@highten.co.uk> wrote:

@Andras: You should avoid using 777 as that gives read/write/execute access to the world, which is a major security concern.

Further information on this:

When a web page loads, any files written/updated within tmp folders are given apache:apache (user:group) access.

When a cronjob runs, any files written/updated within tmp folders are given user:user (user:group) access.  

If apache cannot read/write from these files it can cause Fatal PHP errors and web pages fail to load

If user cannot read/write from these files it can cause Fatal PHP errors which cause cronjobs not to run

How do I create a setup where apache and user cronjobs can run and update tmp files without breaking everything?

Thanks, Paul.



--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: