Re: [web2py] Nginx and Web2py

2012-03-16 Thread Bruno Rocha
what did not work?

did you installed uwsgi + nginx + web2py ?

you dont need to start web2py manually on command line, uwsgi will do that
for you.

Checklist

DNS
- Is your DNS pointing to your server IP? www.domain.com gives you what?

NGINX server file for your application
- /etc/nginx/sites-available what do you have on that folder? what the
content of the file? (put it on pastebin)

Is that enabled?
- /etc/nginx/sites-enabled there is symbolic links here?

UWSGI app config
- /etc/uwsgi-python/apps-available Can you see some xml file here?
(pastebin)

is that enabled?
- /etc/uwsgi-python/apps-enabled Symbolic links here?

Services are running
$/etc/init.d/uwsgi-python status
$/etc/init.d/nginx status

How is your nginx configuration
- /etc/nginx/nginx.conf - what is the user for worker? (pastebin)

Do the nginx/uwsgi user have permissions to run the app?
- ll /home/www-data/web2py - (the permissions are for www-data user?)

Are you having firewall issues?
$ iptables -L


which script did you run?




On Sat, Mar 17, 2012 at 2:23 AM, Marco Tulio Cicero de M. Porto <
mtcpo...@gmail.com> wrote:

> Hi!
>
> I was having trouble on running web2py on nginx, but then I ran the script
> that comes within web2py and it installed.
> After that, I tried creating an app, but it didn't work.
> Then I stopped the server and started web2py like this:
> python2.6 web2py.py
> and then restarted nginx.
> I was able to create my apps.
>
> But I don't know why and it bugs me.
> I want use that for production, but not sure if I can use it like that.
>
> Any ideias?
>
> Thanks!
>
> --
> []'s
> Marco Tulio
>



-- 

Bruno Rocha
[http://rochacbruno.com.br]


[web2py] Nginx and Web2py

2012-03-16 Thread Marco Tulio Cicero de M. Porto
Hi!

I was having trouble on running web2py on nginx, but then I ran the script
that comes within web2py and it installed.
After that, I tried creating an app, but it didn't work.
Then I stopped the server and started web2py like this:
python2.6 web2py.py
and then restarted nginx.
I was able to create my apps.

But I don't know why and it bugs me.
I want use that for production, but not sure if I can use it like that.

Any ideias?

Thanks!

-- 
[]'s
Marco Tulio


[web2py] nginx and web2py

2011-06-09 Thread peter
I am trying to get web2py going with nginx on a remote server.

When I try running it via uswgi and nginx, using wsgihandler.py, it
works with the welcome application. However when I try another
application it gives me an error that it cannot find .../cache/
cache.shelve. This other application works okay with  'python
web2py.py' on the same server.


If I create a dummy file called .../cache/cache.shelve, it deletes
this file, and then complains it cannot find it!

I have given full permissions to both the directory and the file.

The VPS uses Centos 5.5, and I am running things on python2.6.1,
web2py version 1.96.3

any ideas?

Thanks
Peter