Probably because the debian packages tend to be out of date, it is always better to use the latest versions of these packages.
On Fri, Mar 16, 2012 at 8:37 PM, Marco Tulio <[email protected]> wrote: > 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.gz > last 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! > > > > > > > Em domingo, 27 de março de 2011 16h29min43s UTC-3, pbreit escreveu: >> >> I did a little more work on a setup script for Ubuntu + Nginx + uWSGI. >> Please let me know if you experience any problems or have any suggestions. >> I'm fairly new to this. >> >> + Tested on Ubuntu 10.04 (Rackspace Cloud) >> + Nginx 0.8.54 >> + SSL (self-signed) >> + uWSGI 0.9.7.1 >> + Postgres 8.4 >> + Web2py Current >> + user=www-data >> + Hosted at BitBucket: https://bitbucket.**org/pbreit/web2py-automation/* >> *src/ <https://bitbucket.org/pbreit/web2py-automation/src/> >> >> $ wget http://bitbucket.org/**pbreit/web2py-automation/raw/** >> tip/setup-ubuntu-nginx.sh<http://bitbucket.org/pbreit/web2py-automation/raw/tip/setup-ubuntu-nginx.sh> >> $ chmod +x setup-ubuntu-nginx.sh >> $ sudo ./setup-ubuntu-nginx.sh >> >> Note: the script runs almsot unattended. The only user input required is >> specifying web2py admin password. >> > -- -- Regards, Bruce Wade http://ca.linkedin.com/in/brucelwade http://www.wadecybertech.com http://www.warplydesigned.com http://www.fitnessfriendsfinder.com

