Thanks Jonathan. I understand it better now. But why does web2py run into an internal error when the owner/group permissions is not www-data:www-data?
On Thursday, July 19, 2012 12:11:30 AM UTC+8, Jonathan Lundell wrote: > > On 18 Jul 2012, at 9:01 AM, lyn2py wrote: > > Correction: changing the permissions back to www-data ironed things out. > However, I would like user ubuntu to have access to www-data folder. > > How can I make it work? > > I have tried > sudo adduser ubuntu www-data > and confirmed that ubuntu belongs to the www-data group. > But it still doesn't work. > > > Note that adding ubuntu to the www-data group means that ubuntu will use > the group permissions rather than owner permissions (which www-data would > do). > > For example a 755 directory would be writeable by www-data (owner) but not > by ubuntu (group). > > Perhaps you ought to have Apache (or at least the web2py wsgi processes) > run as ubuntu instead. See this line in the setup script: > > WSGIDaemonProcess web2py user=www-data group=www-data > > Or you could allow ubuntu to sudo www-data, if that's not too inconvenient. > > > > Thanks. > > > On Wednesday, July 18, 2012 11:55:25 PM UTC+8, lyn2py wrote: >> >> I discovered that after I changed permissions on the web2py folder >> (chown), web2py registers this internal error. >> >> I did this because adding user to the www-data group doesn't give it >> permissions at all (weird!) >> >> Changing the permissions back to www-data:www-data didn't iron things out. >> >> Can an expert help? Thanks. >> > > > > > --