[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2013-01-30 Thread Massimo Di Pierro
In trunk! On Wednesday, January 30, 2013 10:36:17 AM UTC-6, Alan Etkin wrote: > > > I think we would be wiser to make the standard script one for python 2.6 > because of the problems with python 2.7 > > Just before opening an issue, what do you think? (see attached) > > -- --- You received th

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2013-01-30 Thread peter
Good solution Alan. Peter On Wednesday, 30 January 2013 16:36:17 UTC, Alan Etkin wrote: > > > I think we would be wiser to make the standard script one for python 2.6 > because of the problems with python 2.7 > > Just before opening an issue, what do you think? (see attached) > > -- --- You r

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2013-01-30 Thread Alan Etkin
> I think we would be wiser to make the standard script one for python 2.6 because of the problems with python 2.7 Just before opening an issue, what do you think? (see attached) -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubsc

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2013-01-30 Thread Alan Etkin
> > I just got a new vps with centos 5 (32 bit on it). This script fails to > get sqlite3 working. How? I thought I fixed it by applying the patch. IIRC the welcome app worked on 2.7 with a clean testing vm (and a sqlite connection). Perhaps the scrip should set 2.6 by default and warn the us

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2013-01-30 Thread peter
I just got a new vps with centos 5 (32 bit on it). This script fails to get sqlite3 working. As python 2.6 is fine I took the easy way and set # Python options PREFIX=2.6 VERSION=2.6.8 I also commented out the patch that is supposed to fix sqlite3 with python2.7 It works fine with these optio

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-09-12 Thread Alan Etkin
> > I'm trying step to step now...and only was needed an little changes > Answered in web2py-usuarios --

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-09-04 Thread Christian Espinoza
I'm trying step to step now...and only was needed an little changes El martes, 4 de septiembre de 2012 18:03:16 UTC-3, Christian Espinoza escribió: > > Hi Alan, I did test this script at a clean Centos 6, and the result is: 502 > Bad Gateway > Christian > > > El viernes, 3 de agosto de 2012 20:2

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-09-04 Thread Christian Espinoza
Hi Alan, I did test this script at a clean Centos 6, and the result is: 502 Bad Gateway Christian El viernes, 3 de agosto de 2012 20:23:21 UTC-3, Alan Etkin escribió: > > Updated the script to: > > - Write port 443 admin password > - Create welcome.w2p package (for solving admin create app featu

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-04 Thread Massimo Di Pierro
I have limited connectivity until tomorrow. If you have something to go in trunk please open an issue so it does not get lost. --

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-04 Thread peter
Script tested and working. Thanks Alan Peter On Saturday, 4 August 2012 10:50:45 UTC+1, peter wrote: > > Thanks for this Alan. I will independently test and feedback, but imagine > it will work for me too. > Peter > > On Saturday, 4 August 2012 00:23:21 UTC+1, Alan Etkin wrote: >> >> Updated the

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-04 Thread peter
Thanks for this Alan. I will independently test and feedback, but imagine it will work for me too. Peter On Saturday, 4 August 2012 00:23:21 UTC+1, Alan Etkin wrote: > > Updated the script to: > > - Write port 443 admin password > - Create welcome.w2p package (for solving admin create app feature

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-03 Thread Alan Etkin
Updated the script to: - Write port 443 admin password - Create welcome.w2p package (for solving admin create app feature error) - Patch Python2.7.3 code for sqlite3 issue before installing It was tested with a clean CentOS 5.8 vbox and is working. Needs improvement: it stops a few times for use

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-02 Thread peter
Someone else has provided a script for centos 6. There are plenty of webservers out there based on centos 5 I believe because of its stability. So it is useful to have a script for Centos 5. Particularly as this seems to be the most tricky Linux for web2py because it uses and needs python 2.4 Ma

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-02 Thread Massimo Di Pierro
Do you suggest we replace the current script with this? On Thursday, 2 August 2012 05:01:17 UTC-5, peter wrote: > > Attached is a working script that uses python2.6. It handles https. > > Python2.7 causes problems, eg no sqlite. This is why my original script > was for python2.6. If anyone actua

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-02 Thread Alan Etkin
> The script I attached in my previous email is your script but with python set to be 2.6. I tested this and it works. My concern is that 2.7 is said to be the last supported 2.x version of Python. I agree that testing in a raw install saves time and all kinds of issues. I will deploy in a virt

Re: [web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-02 Thread Jonathan Lundell
On 2 Aug 2012, at 6:32 AM, peter wrote: > I did not just discard it, I spent a day working through the issues. I have a > virtual box that I have installed Centos 5.8 on. I start with a clean install > and apply the script. > > With the changes I spoke of in my previous emails I got web2py star

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-02 Thread peter
I did not just discard it, I spent a day working through the issues. I have a virtual box that I have installed Centos 5.8 on. I start with a clean install and apply the script. With the changes I spoke of in my previous emails I got web2py starting but issuing a ticket. The error was a failure

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-02 Thread Alan Etkin
> Python2.7 causes problems, eg no sqlite I have web2py apps working both with sqlite and postgresql databases in the CentOS 5.8 host with Python 2.7.3 What other issues were detected? Would you please provide links or other info related to this problems? That could help improve the script also

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-02 Thread Alan Etkin
I'm sorry, I don't recall having issues with sqlite. would you mind sending the centos script for replacing the updated in trunk until we have the 2.7 version working? El jueves, 2 de agosto de 2012 07:01:17 UTC-3, peter escribió: > > Attached is a working script that uses python2.6. It handles

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-02 Thread peter
Attached is a working script that uses python2.6. It handles https. Python2.7 causes problems, eg no sqlite. This is why my original script was for python2.6. If anyone actually gets a Python2.7 script that they have tested on a bare centos 5 machine, then fine submit it. The attached script h

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-01 Thread Alan Etkin
> > > I have got through 5 issues on your instructions so far: > > > 'force-reload' not recognised so removed from uwsgi > > Didn't test that command, it came with the example uwsgi startup script, but I think there's no need of it 'tar's had '-zxvf' as options, changed to 'zxvf' > tar man page

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-08-01 Thread peter
The instructions I gave at the top had been tested on a bare centos 5 machine and worked. I have got through 5 issues on your instructions so far: 'force-reload' not recognised so removed from uwsgi 'tar's had '-zxvf' as options, changed to 'zxvf' 'cp -R ./$version/* /opt/uwsgi-python

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-07-30 Thread Alan Etkin
> El lunes, 30 de julio de 2012 10:20:16 UTC-3, peter escribió:Thank for extending the script Alan. > I have tested the trunk version. It fails when trying to start the service uwsgi > it cannot find /opt/uwsgi-python/uwsgi Two things to check, I guess: - Your system's /etc/sysconfig/uwsgi (i

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-07-30 Thread peter
Thank for extending the script Alan. I have tested the trunk version. It fails when trying to start the service uwsgi it cannot find /opt/uwsgi-python/uwsgi This is presumably from PROG=/opt/uwsgi-python/uwsgi and daemon $PROG $DAEMON_OPTS Clearly when you tested it there was something els

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-07-29 Thread Massimo Di Pierro
In trunk. Kept the previous name. Added Peter's full name. On Sunday, 29 July 2012 09:26:37 UTC-5, Alan Etkin wrote: > > The fixed peter scrip to install Python 2.7.3 and self-signed certs for > ssl enabled apps. It retrieves the base architecture also for nginx > installation. It should be test

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-07-29 Thread Alan Etkin
The fixed peter scrip to install Python 2.7.3 and self-signed certs for ssl enabled apps. It retrieves the base architecture also for nginx installation. It should be tested although, as I only used its commands separately. -- #!/bin/bash # Script for installing Web2py with Nginx and Uwsgi

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-07-28 Thread peter
Glad you got it working in the end. It is useful that it has now been independently tested. Peter On Saturday, 28 July 2012 15:55:38 UTC+1, Alan Etkin wrote: > > Well, I finally found a way of getting the server to serve web2py apps. > The only problem with your recipe for my host was in the st

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-07-28 Thread Massimo Di Pierro
Please email me a patch if this should go in scripts/ On Saturday, 28 July 2012 09:55:38 UTC-5, Alan Etkin wrote: > > Well, I finally found a way of getting the server to serve web2py apps. > The only problem with your recipe for my host was in the startup script > (maybe an error when doing cop

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-07-28 Thread Alan Etkin
Well, I finally found a way of getting the server to serve web2py apps. The only problem with your recipe for my host was in the startup script (maybe an error when doing copy/paste). I switched it with the one that comes with uwsgi source dist: centos_init_script and used your script's paramete

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2012-07-28 Thread Alan Etkin
Hi peter, thanks for sharing the recipe. I followed most of the steps to deploy web2py with nginx and uwsgi in a CentOS ver 5.8 VPS host, but nginx is serving only the static default page. /welcome or other url will fail with: 502 Bad Gateway -- nginx/1.2.2 nginx w