Cherokee deployment config

41 views
Skip to first unread message

Roberto Perdomo

unread,
Jan 27, 2012, 10:53:22 AM1/27/12
to web...@googlegroups.com
Hi,

I have problems with the configuration of a server cherokee with we2py.

I follow the  Cherokee with FastCGI manual from:
http://www.web2py.com/books/default/chapter/29/13.

1) create the file /var/web2py/startweb2py.sh and set as executable
with this content:

#!/bin/sh
sudo -u www-data python /var/web2py/fcgihandler.fcgi &

2) enter in cherokee-admin al port 9090 and config sources with:

Nick: web2py
Connection: /tmp/fcgi.sock
Interpreter: /var/web2py/startweb2py.sh

3) edit vserver default handler with fastcgi and FastCGI Specific set
round robin and Assign Information Sources to web2py source

before start cherokee server, execute startweb2py.sh and enter to mi
ip in the webbrowser al show the startpage from cherokee, i use mi
ip/web2py and show error 404.

what is wrong?

I also try lighttp but the configuration not was successfull.

PD: i cant use apache

Roberto Perdomo

unread,
Jan 27, 2012, 10:58:10 AM1/27/12
to web...@googlegroups.com
I found that setting alternative doccument root to
/var/web2py/applications the server work, but in the documentation
that change does not appear.

Solved my self, thanks

2012/1/27 Roberto Perdomo <rober...@gmail.com>:

Michele Comitini

unread,
Jan 27, 2012, 3:45:38 PM1/27/12
to web...@googlegroups.com
I know it is not fcgi but I suggest scgi, it is simpler and couples
very well with web2py.
In the new web2py cookbook there is a recipe for using cherokee with
scgi, there you will find a detailed setup description.

The essence is that you create an scgi handler in cherokee. You set
cherokee to use scgihandler.py inside the root of web2py as startup
process in that same scgihandler. Then you are done.

Else use nginx it is excellent see this:
http://www.web2pyslices.com/slices/take_slice/143

There you see a simplified setup. In production I suggest to use
daemontools to manage the scgihandler process: works like a charm.

mic

p.s. ;-) good thing you can't use apache+wsgi with cherokee+scgi my
system is able to handle 5 times more requests (with session.forget())
;-)

2012/1/27 Roberto Perdomo <rober...@gmail.com>:

Roberto Perdomo

unread,
Jan 27, 2012, 9:04:15 PM1/27/12
to web...@googlegroups.com

Thank for you suggest. The next monday i try.

Today with cherokee and fastcgi the welcome app work fine, but only show the index, and with other apps is the same problem.

Gour

unread,
Jan 28, 2012, 2:09:36 AM1/28/12
to web...@googlegroups.com
On Fri, 27 Jan 2012 11:23:22 -0430
Roberto Perdomo <rober...@gmail.com>
wrote:

> I have problems with the configuration of a server cherokee with
> we2py.

Have you considered Cherokee + uWSGI?


Sincerely,
Gour

--
In this endeavor there is no loss or diminution,
and a little advancement on this path can protect
one from the most dangerous type of fear.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810

signature.asc
Reply all
Reply to author
Forward
0 new messages