[web2py] Re: Cherokee and fcgi

2011-05-13 Thread pbreit
Good to hear. I currently think ubuntu + nginx + uWSGI is the best setup but 
Cherokee is good too.


[web2py] Re: Cherokee and fcgi

2011-05-12 Thread luckysmack
as a side note, when going to domain.dev, it does change the path to
domain.dev/welcome/default/index

On May 11, 11:56 pm, luckysmack luckysm...@gmail.com wrote:
 Im trying to setup web2py with fcgi on cherokee. At one point it
 worked (last night after i spent a few hours trying to get it to work.
 and after i saw the screen went to sleep). But today when i try to use
 it its not working again. But now I cant get it to work whatsoever.

 i have a fresh installation of cherokee of 1.2.2 from the ubuntu
 (natty) repos using apt. I followed the guide 
 herehttp://www.web2py.com/book/default/chapter/11#Cherokee-with-FastGGI
 to get it working in the first place. But still cant get it to work.
 My web2py source is exactly as it tells to setup.

 /srv/sites/domain.dev/public/startweb2py.sh

 #!/bin/bash
 cd /srv/sites/domain.dev/public
 python /srv/sites/domain.dev/public/fcgihandler.py 

 The only handler I have in my vhost is 'default'

 Handler: FastCGI
 Document Root: [blank]
 Script Alias: [blank]
 Error Handler [X]
 Check File [ ]
 Pass request Headers [X]
 Allow X-Sendfile [ ]
 Read X-Real-IP [ ]
 No custom env variables
 Balancer: Round Robin
 Inof Sources web2py [/tmp/fcgi.sock]

 Now the domain vhost itself, is named 'domain.dev' (i like to use
 *.dev domains for local testing. better than just localhost) and has a
 host match also ofwww.domain.dev
 document root: /srv/sites/domain.dev/public
 directory indexes: index.html

 everything else in there shouldnt matter. from what i can tell.
 running web2py with rocket works perfectly fine. But the only thing
 that loads is 'invalid request' and nothing shows in the error log. Im
 not sure what else I can check. this is my first time using fcgi. I
 was also looking at trying wsgi as theres a stup in cherokee for wsgi
 but i didnt find any articles on how to run it like that. and I
 thought fcgi would be better performance wise. But im not sure.

 Any help would be appreciated.


[web2py] Re: Cherokee and fcgi

2011-05-12 Thread pbreit
I unfortunately can't help out with fcgi but I you wanted to try uWSGI there 
are some scripts and steps posted here and on slices. UWSGI is Probably better 
anyhow.


[web2py] Re: Cherokee and fcgi

2011-05-12 Thread luckysmack
yea i tried fcgi because that was the example in the book. If wsfi is
easier/better to setup, and i can get it working. ill try that as
well. Do you know of any good links off hand? otherwise ill just
browse on the slices site. I looked here but only really found posts
where people were having issues or asking general questions.

On May 12, 12:44 am, pbreit pbreitenb...@gmail.com wrote:
 I unfortunately can't help out with fcgi but I you wanted to try uWSGI there 
 are some scripts and steps posted here and on slices. UWSGI is Probably 
 better anyhow.


[web2py] Re: Cherokee and fcgi

2011-05-12 Thread pbreit
I think this one is most up to date:
https://bitbucket.org/pbreit/web2py-automation/src/aa0c47ea95b6/setup-ubuntu-cherokee.sh

You can either try and run it or just copy/paste each step.

The Cherokee Admin is nice but makes it harder to setup with a script.


[web2py] Re: Cherokee and fcgi

2011-05-12 Thread pbreit
Here's another, slightly older but perhaps worth reviewing:
http://web2pyslices.com/main/slices/take_slice/110


[web2py] Re: Cherokee and fcgi

2011-05-12 Thread luckysmack
Sweeet. Well based on the bitbucket link I was able to get it to work
with uWSGI. So thanks a bunch for the help.

On May 12, 12:12 pm, pbreit pbreitenb...@gmail.com wrote:
 Here's another, slightly older but perhaps worth 
 reviewing:http://web2pyslices.com/main/slices/take_slice/110