Rails / Paperclip Errno :: EACCESS (permission denied)

I am working on a Rails application with the Paperclip gem used to save user avatars. Production Environment, FreeBSD, Apache, MySQL.

When saving a user profile with the specified avatar file, errors related to permission appear.

I installed 777 for all Paperclip directories - this did not help.

Please, help!

Thanks!

configurations / environment / production.rb

Paperclip.options[:command_path] = '/usr/local/bin' 

application / models / user.rb

 has_attached_file :avatar, :styles => { :medium => "300x180>", :thumb => "40x40>" } 
+4
source share
1 answer

The answer is pretty simple (as always). Change the owner of the public directory to www (was root):

$ chown -R www public

+4
source

All Articles