Thursday, May 31, 2012

Re: app/tmp permissions

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" <stephen@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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: