Problems after upgrading - folder permissions

Hi folks,

We have just upgraded to Omeka-2.2.2. here and have run into a couple of different problems.

I'm going to separate them out for clarity.

So this post is about folder permissions.

2014-11-11T22:05:20+00:00 ERR (3): exception 'Omeka_Storage_Exception' with message 'Destination directory is not writable: '/var/www/html/files/original'.' in /var/www/html/application/libraries/Omeka/Storage/Adapter/Filesystem.php:219

I get the problem, I'm just not sure what the solution is. After upgrading our current permissions in the files directory are:

[padraic@something files]$ ll
total 108
drwxr-xr-x   7 root  4096 Nov  3 22:13 ./
drwxr-xr-x. 11 root  4096 Nov  3 22:30 ../
drwxr-xr-x   2 root 24576 Nov  3 22:12 fullsize/
drwxr-xr-x   2 root 24576 Nov  3 22:13 original/
drwxr-xr-x   2 root 24576 Nov  3 22:13 square_thumbnails/
drwxr-xr-x   2 root  4096 Nov  3 22:12 theme_uploads/

I can see that we might have sudo'd somewhere during the upgrade when we shouldn't have.

Who should own these directories? Root, a normal user or someone else? What should the permissions be?

The most important thing is that the web server has permissions to write to the directories. So, if the server is in the group 24576 it might work to just give write permission to the group for all the directories.