Hi,
Tested on:
Ubuntu 10.04.4 LTS
nginx-1.0.11
uwsgi-0.9.9.3
web2py 1.99.7
user=www-data
Hosted at Amazon EC2.
ubuntu@IP:/opt$ uname -a
Linux IP 2.6.32-342-ec2 #43-Ubuntu SMP Wed Jan 4 18:22:42 UTC 2012 x86_64 GNU/Linux
Pretty much downloaded the script and ran it. Installed nginx, uwsgi, web2py and ran it perfectly.
BUT, I can't create applications.
It says "Failure to create application" or "Unable to create application '<application name>' (it may exist already)".
I read somewhere that if you call python2.6 web2py and then calling nginx, it may solve this, but they didn't explain and I couldn't make it work.
last stable release of uwsgi is
http://projects.unbit.it/downloads/uwsgi-1.0.4.tar.gzlast stable release of nginx is 1.0.14
Also noticed that Web2py itself fails to recognize Nginx and it's version (as it does with Apache at the admin page).
It says "Running on None"
ubuntu@IP:/opt$ ls
init-deb.sh nginx-1.0.11 uwsgi web2py
nginx nginx-1.0.11.tar.gz uwsgi-0.9.9.3.tar.gz web2py_src.zip
ubuntu@IP:/opt$ ps ax | grep nginx
29006 ? Ss 0:00 nginx: master process /opt/nginx/sbin/nginx
29007 ? S 0:00 nginx: worker process
29008 ? S 0:00 nginx: worker process
29009 ? S 0:00 nginx: worker process
29010 ? S 0:00 nginx: worker process
29093 pts/0 S+ 0:00 grep --color=auto nginx
ubuntu@IP :/opt$ ps ax | grep uwsgi
28991 ? S 0:00 /usr/local/bin/uwsgi -s
127.0.0.1:9001 -M 4 -t 30 -A 4 -p 4 -d /var/log/uwsgi.log --pythonpath /opt/web2py/ --module wsgihandler
29000 ? S 0:00 /usr/local/bin/uwsgi -s
127.0.0.1:9001 -M 4 -t 30 -A 4 -p 4 -d /var/log/uwsgi.log --pythonpath /opt/web2py/ --module wsgihandler
29001 ? S 0:00 /usr/local/bin/uwsgi -s
127.0.0.1:9001 -M 4 -t 30 -A 4 -p 4 -d /var/log/uwsgi.log --pythonpath /opt/web2py/ --module wsgihandler
29002 ? S 0:00 /usr/local/bin/uwsgi -s
127.0.0.1:9001 -M 4 -t 30 -A 4 -p 4 -d /var/log/uwsgi.log --pythonpath /opt/web2py/ --module wsgihandler
29003 ? S 0:00 /usr/local/bin/uwsgi -s
127.0.0.1:9001 -M 4 -t 30 -A 4 -p 4 -d /var/log/uwsgi.log --pythonpath /opt/web2py/ --module wsgihandler
29096 pts/0 S+ 0:00 grep --color=auto uwsgi
Nginx sounds really promissing, it could be really nice if this would work perfectly.
Thanks in advanced for any help.
Just one question: why you compiled everything when you could have used the debian packages??
It doesn't work with deb? Why?
Thanks again!