# Errno::EACCES - Permission denied

**URL:** <https://www.ruby-forum.com/t/errno-eacces-permission-denied/109404>\
**Category:** Radiant CMS\
**Created:** [July 14, 2007, 11:08am UTC](https://www.ruby-forum.com/t/errno-eacces-permission-denied/109404 "2007-07-14T11:08:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlorimor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/96bed5/32.png) [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Post date:** [July 14, 2007, 11:08am UTC](https://www.ruby-forum.com/t/errno-eacces-permission-denied/109404/1 "2007-07-14T11:08:05Z")

</div>

I am all new to deploying rail applications. I have managed to get a  
local version of Radiant transfer and working briefly on my VPS. It  
stopped working, I figure, when the page caching kicked in.

Looking at the production.log, I found this error:

Errno::EACCES (Permission denied -  
/var/www/apps/myrailsproject/current/config/…/cache/index.yml):  
/vendor/rails/actionpack/lib/action\_controller/caching.rb:89:in  
`initialize' /vendor/rails/actionpack/lib/action_controller/caching.rb:89:in`cache\_page’  
(…shorten here for brevity…)

Looking at the install instructions, I found this set of instructions:

When using Radiant on a production system you may also need to set  
permissions  
on the public and cache directories so that your Web server can access  
those  
directories with the user that it runs under.

Could someone please explain in detail how I can setup the require  
permissions?

---

<div class="post-metadata">

**Author:** ![rlorimor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/96bed5/32.png) [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Post date:** [July 14, 2007, 8:27pm UTC](https://www.ruby-forum.com/t/errno-eacces-permission-denied/109404/2 "2007-07-14T20:27:21Z")

</div>

> Could someone please explain in detail how I can setup the require  
> permissions?

```
That's totally platform and configuration dependent. You can try a

```

“chmod a+rw public/ cache/” as root.

```
For more info, start with:

http://www.google.com/search?hl=en&q=unix+file+permissions

And follow with:

http://www.fifi.org/cgi-bin/man2html/usr/share/man/man1/chown.1.gz
http://www.fifi.org/cgi-bin/man2html/usr/share/man/man1/chmod.1.gz

/AITOR
```

---

<div class="post-metadata">

**Author:** ![rlorimor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/96bed5/32.png) [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Post date:** [July 15, 2007, 2:19pm UTC](https://www.ruby-forum.com/t/errno-eacces-permission-denied/109404/3 "2007-07-15T14:19:41Z")

</div>

Thanks Aitor, your suggestion got me started. The actual command that  
fix my situation was this:

chmod -R a+rw cache
