Thursday, September 19, 2013

Re: app/tmp permissions

Could you elaborate what the right settings are? I am searching all over internet and i can't find it. Here is the question on stackoverflow:
http://stackoverflow.com/questions/18899012/what-are-the-right-ownership-permissions-to-the-cakephp-app-tmp-folder-for-pro

if you could help, that would be awesome!

pp

On Thursday, May 31, 2012 7:05:53 PM UTC+3, jeremyharris wrote:
Changing the ENTIRE folder to 777 is a TERRIBLE idea and a massive security risk. I highly suggest you don't do it this way. Assuming you have the proper user and groups on the folder, 660 should be sufficient.

On Tuesday, May 29, 2012 8:28:29 PM UTC-7, Nikhil Agrawal wrote:

Try changing the mode of entire cake folder using chmod to 777
-R , it will work.
Pls give the error which is displayed, if it don't work.

On May 27, 2012 3:23 PM, "Steve Found" <ste...@foundfamily.co.uk> wrote:
On 26/05/12 06:30, Kid Noire wrote:
I'm a total newbie to Cake and believe I've put everything in their
proper folders.  Everything is green on my local host except my tmp
Directory is not writable (yellow)  I have no idea how to set
permissions and have tried chmod in terminal but really not sure even
if I'm doing this part properly.  Any step by step would be much
appreciated.  Thanks!


Assuming you are on a linux server running apache2:

The easiest (but most unsafe) method is to change to your app directory and do 'chmod -R 777 tmp' which makes tmp and everything below it readable and writeable by everyone.

A better method is to change group ownership of tmp and everthing below it to www-data ( or whatever group your apache server runs in ) with 'chgrp -R www-data tmp' followed by 'chmod -R 774 tmp' This makes tmp read/write for you and the www-data group but readonly for everyone else

If you have access to /etc/apache2 on your system, you could also modify /etc/apache2/envvars and change 'APACHE_RUN_USER' and 'APACHE_RUN_GROUP' to be your username and group. This will make the webserver run as you. This is OK for local systems but you are unlikely to have access to this file in a hosted environment unless you have your own server.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+u...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
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/groups/opt_out.

No comments: