[web2py] Re: How to start web2py server as linux daemon along with nginx?

2014-04-28 Thread Cynthia Butler
Thank you very much, that worked!

On Saturday, April 26, 2014 9:38:29 PM UTC-6, Massimo Di Pierro wrote:

 Can you try edit the file /etc/init.d/web2py and replace

 DAEMON_USER=web2py

 with

 DAEMON_USER=www-data

 On Saturday, 26 April 2014 22:38:00 UTC-5, Massimo Di Pierro wrote:

 You can try 

 On Saturday, 26 April 2014 13:29:08 UTC-5, Cynthia Butler wrote:

 I followed the instructions in the book Chapter 13 Start as Linux 
 daemon. But when I type this on command line:

 sudo /etc/init.d/web2py start

 I get this error:

  * Starting Web Framework web2py
 chown: invalid user: 'web2py'
 start-stop-daemon: user 'web2py' not found

 I think it's caused by the group:user is actually www-data' as setup by 
 the ngenix-uwsgi-ubuntu.sh script, instead of web2py.

 I can get the web2py server to run by typing this at the command line:
 cd /home/www-data/web2py
 sudo -u www-data python web2py

 But it is not a daemon process (running in the background).

 What is the proper way to resolve the different owners so I can run web2py 
 server as a daemon and also in a secure way (not by sudo -- or does that 
 matter)?

 Thank you-- I'm a noob!




-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: How to start web2py server as linux daemon along with nginx?

2014-04-26 Thread Massimo Di Pierro
You can try 

On Saturday, 26 April 2014 13:29:08 UTC-5, Cynthia Butler wrote:

 I followed the instructions in the book Chapter 13 Start as Linux 
 daemon. But when I type this on command line:

 sudo /etc/init.d/web2py start

 I get this error:

  * Starting Web Framework web2py
 chown: invalid user: 'web2py'
 start-stop-daemon: user 'web2py' not found

 I think it's caused by the group:user is actually www-data' as setup by the 
 ngenix-uwsgi-ubuntu.sh script, instead of web2py.

 I can get the web2py server to run by typing this at the command line:
 cd /home/www-data/web2py
 sudo -u www-data python web2py

 But it is not a daemon process (running in the background).

 What is the proper way to resolve the different owners so I can run web2py 
 server as a daemon and also in a secure way (not by sudo -- or does that 
 matter)?

 Thank you-- I'm a noob!




-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: How to start web2py server as linux daemon along with nginx?

2014-04-26 Thread Massimo Di Pierro
Can you try edit the file /etc/init.d/web2py and replace

DAEMON_USER=web2py

with

DAEMON_USER=www-data

On Saturday, 26 April 2014 22:38:00 UTC-5, Massimo Di Pierro wrote:

 You can try 

 On Saturday, 26 April 2014 13:29:08 UTC-5, Cynthia Butler wrote:

 I followed the instructions in the book Chapter 13 Start as Linux 
 daemon. But when I type this on command line:

 sudo /etc/init.d/web2py start

 I get this error:

  * Starting Web Framework web2py
 chown: invalid user: 'web2py'
 start-stop-daemon: user 'web2py' not found

 I think it's caused by the group:user is actually www-data' as setup by the 
 ngenix-uwsgi-ubuntu.sh script, instead of web2py.

 I can get the web2py server to run by typing this at the command line:
 cd /home/www-data/web2py
 sudo -u www-data python web2py

 But it is not a daemon process (running in the background).

 What is the proper way to resolve the different owners so I can run web2py 
 server as a daemon and also in a secure way (not by sudo -- or does that 
 matter)?

 Thank you-- I'm a noob!




-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.