0

I am getting an error on my stating server which says An Errno::EACCES occurred in items#update:

Permission denied - /var/www/ABC/public/items_images/1
 /root/.rbenv/versions/1.9.3-p448/lib/ruby/1.9.1/fileutils.rb:247:in `mkdir'

My staging.rb file permission is set to www:www, same for the public folder, which is recursively set to www:www.

I am not sure of what is happening. Would anyone have a clue? Thanks

Roman
  • 337
  • 1
  • 3
  • 12
  • try `chmod 777` to your file – user2503775 Jan 26 '14 at 12:35
  • do you use apache? under which user does it run? normally it's www-data. by the way: Not the file executing mkdir needs the permission, but the folder in which you want to create that new folder! – Dominik Goltermann Jan 26 '14 at 12:42
  • @user2503775 , which file should I run chmod 777? – Roman Jan 26 '14 at 15:44
  • @Dominik Goltermann I use Apache and Passenger. items_images: drwxrwxr-x www-data : www-data user permissions. Public folder is using the same user permissions too. – Roman Jan 26 '14 at 15:45
  • @Roman can you show us the code that executes the mkdir command? Normally everything should be fine if apache is running as www-data and when that folder is owned by www-data – Dominik Goltermann Jan 26 '14 at 15:55

0 Answers0