Yes, the unix permissions on the filesystem are correctly set.  I can su to 
www-data and create, edit, read, and destroy all the files and directories 
I want.  But thru Apache -- nada.

I think I'll just toss this VM and start over.  I'm thinking KVM would be 
better than VirtualBox for this anyway.  I must have screwed up something 
when I installed Apache for Debian.  Sometimes it's just quicker to start 
over -- especially since i don't have a big investment of time in this VM 
instance.

Thanks.

Joe

On Wednesday, July 24, 2013 11:22:20 PM UTC-7, Niphlod wrote:
>
> just ensure that the user running apache has rw permissions on the web2py 
> root dir, epsecially the uploads one.
>
> Il giorno giovedì 25 luglio 2013 00:48:12 UTC+2, Joe Barnhart ha scritto:
>>
>> Well it's entirely possible I don't understand my problem.
>>
>> Running on my macbook locally everything works like a charm.  On the 
>> "play" deployment server, which uses Apache, the script that deletes files 
>> after processing fails because it lacks "permission" (according to the 
>> web2py error log).  Also, when uploading the files Apache goes to 100% cpu 
>> and stays there, consuming RAM until I get tired of watching.  Admittedly, 
>> they are very large files (~200MB) but I don't see why Apache should 
>> consume >2G of RAM while spinning in some kind of loop.
>>
>> Everything is set up as in the book and messages here -- I used Debian 
>> Linux for the play server and used www-data for the user and group, and put 
>> web2py under /home/www-user/.  The website works fine in all other ways, 
>> but just has issues uploading/downloading files from my web page file 
>> loader.
>>
>> I must say this web deployment step is much harder than using web2py to 
>> create the site!
>>
>> -- Joe B.
>>
>> On Wednesday, July 24, 2013 2:58:07 PM UTC-7, Niphlod wrote:
>>>
>>> there are no special permissions because apache can't serve the uploads 
>>> directory by itself. Remember that "uploads" is not the same as "static". 
>>> The uploads are interely managed by web2py.
>>>
>>> On Wednesday, July 24, 2013 11:51:05 AM UTC+2, Joe Barnhart wrote:
>>>>
>>>> So a central part of my website is a repository of files/objects that 
>>>> are added and removed.  I've chosen to use the "uploads" folder in my 
>>>> application directory, with additional feature of scattering the files 
>>>> into 
>>>> subdirectories (because I expect a LOT of them).
>>>>
>>>> I'm trying the stock apache2 setup from the book but I find it has no 
>>>> provision for permissions on the uipload directory.  I copied the setup 
>>>> for 
>>>> the "static" directory and was able to put files in the directory, but I 
>>>> can't delete files from the directory within my site.
>>>>
>>>> Has anyone worked out the changes needed to the stock Apache2 setup 
>>>> that accommodates the upload directory?  Seems like it would be a nice 
>>>> addition/update to the book setup.
>>>>
>>>> Joe B.
>>>>
>>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to