Re: Problem with file upload

John Browning
Fri, 29 Jun 2007 06:50:02 -0000

I''m puzzled why Apache''s should be the relevant user as it
doesn''t
execute Rails code. But to test further if it is indeed a permissions
issue, try either setting permissions to 777 (or 766) on that
directory, or making nobody the owner (not just the group).
Personally, I wouldn''t try to give permissions to nobody as the whole
point of that account is that it has none (which is an issue that
crops up for Web DAV fairly frequently, see for example <http://
www.lyra.org/pipermail/dav-dev/2001-August/002676.html>). But
creating world writeable directories also has issues. So perhaps run
apache as www group www and manage it as a real user -- if that is
indeed the problem.


On 28 Jun 2007, at 23:52, jzw wrote:

>
> It has been a couple of weeks and I still have not figured this
> out....  Surely someone out there has an idea....
>
> On Jun 13, 4:17 pm, jzw
<john.zachary.willi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> I have a simple app that allows users to upload image files to the
>> web
>> server. It works fine on my laptop with Webrick, when I deploy to the
>> web server it also works fine with webrick.  However, when I try to
>> connect via Apache, the files get uploaded to the /tmp directory, but
>> the never make it to the correct directory within the application (/
>> public/images/photos).  I am sure that this is some permissions
>> problem with the Apache user (Apache runs as user:nobody,
>> group:nobody) but it appears that all of the correct permissions are
>> in place.  Here are the permissions on the photos directory:
>>
>> drwxrwxr-x  2 jzw    nobody   4096 Jun 13 15:18 photos/
>>