web2py install on nginx?

61 views
Skip to first unread message

rick

unread,
Feb 23, 2010, 10:39:15 AM2/23/10
to web2py-users

Can anyone share his experience installing and working with web2py on
nginx?
Which if the best install approach? fastcgi?

Any hints will be appreciated,
Brgds

Ahmed Sameh

unread,
Feb 23, 2010, 5:43:20 PM2/23/10
to web2py-users
Hi rick,

I have installed it but there is a problem using routes.py with NGINX
+FCGI , I have posted about that earlier.
But using NGINX + CherrPy + web2py works fine and you can find many
other posts discussing that.

I think that NGINX + FCGI is so much faster than NGINX + CherryPy, I
will benchmark the performance soon.

Here is my notes about installing NGINX + FCGI + web2py :

NGINX ------> Socket file <------- web2py

1- Have the latest release of NGINX.

2- Edit the configuration file of your site so that it can use FCGI as
follows:

fastcgi_pass unix:/tmp/web2py.sock;
include fastcgi_params;

3- Edit fcgihandler.py which is located in the root directory of
web2py, change the socket file to web2py.sock

4- Run fcgihandler.py --> python fcgihandler.py

5- Change the permissions of /tmp/web2py.sock to something that is
accessible by NGINX and web2py,
for testing use chmod 777 /tmp/web2py.sock

rick

unread,
Feb 23, 2010, 8:07:38 PM2/23/10
to web2py-users
Thanks ;)
Reply all
Reply to author
Forward
0 new messages