Quantcast

app/tmp permissions

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

app/tmp permissions

Kid Noire
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!

--
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
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: app/tmp permissions

Steve Found
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
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: app/tmp permissions

Nikhil Agrawal

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" <[hidden email]> 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
[hidden email] 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
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: app/tmp permissions

lowpass
In reply to this post by Steve Found
On Sun, May 27, 2012 at 5:52 AM, Steve Found <[hidden email]> wrote:
>
> 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

I do the same but also setgid on the directory to make it simpler for
me to remove files subsequently created if I'm accessing the server
through FTP instead of a shell.

chown -R www-data tmp
chgrp -R your_login_group tmp
chmod -R 774 tmp
chmod -R g+s tmp

Then all new files created by Cake will inherit the group permissions.

--
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
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: app/tmp permissions

jeremyharris
In reply to this post by Nikhil Agrawal
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" <[hidden email]> 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
[hidden email] 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
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php
Loading...