Similarly, you can set the variable server.username in the
lighttpd.conf (usually /etc/lighttpd.conf)...for example:

server.username = "postgres"

On Feb 9, 8:41 pm, "Anand Chitipothu" <[EMAIL PROTECTED]> wrote:
> On Feb 10, 2008 3:04 AM, Tzury Bar Yochay <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > (this regards to infogami which built on top of web.py)
>
> > here is my problem.
> > the database I am using is postgresql (8.2)  (template1, postgres)
> > therefore my db_parameters looks like:
> > db_parameters = dict(dbn='postgres', db="mydb", user='postgres',
> > pw='mypassword')
> > therefore in order to use the built-in web server I have to type
> > sudo -u postgres python code.py
>
> > Yet, I want to switch from web.py web server to lighttpd.
>
> > my question is then, how to I make lighttpd run code.py under postgres
> > user. since the default configuration as described in the site yields
> > to "404 - not found"
>
> Lighttpd is run as user www-data. You should create a postgres with
> that name and give appropriate permissions.
> `createuser` command can be used to create www-data user.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to