Finally - It works if I run web2py's python shell as sudo:
I thought my nginx was set up as user = www-data. 
I am confused by /locations/users/permissions in my nginx server set up and 
web2py file locations/users/permissions.

Can you help me understand? 

cindy@cindy-HP64bit:/home/www-data/web2py$ sudo python web2py.py -S welcome 
-P 
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2014
Version 2.9.5-stable+timestamp.2014.03.16.02.35.39
Database drivers available: SQLite(sqlite3), MySQL(pymysql), PostgreSQL(
pg8000), MongoDB(pymongo), IMAP(imaplib)
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> dba = DAL('mongodb://web2pyUser:web2pyPwd@localhost:27017/mydb')
>>> print dba._uri
mongodb://web2pyUser:web2pyPwd@localhost:27017/mydb
>>> print dba._dbname
mongodb
>>>


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to