ubuntu 15.10 is running on vm VirtualBox.
i exec the script and didn't install anything. nginx is installed by the 
script and running.
http://localhost/ and https://localhost/ raise 502 Bad Gateway page.

there isn't a routes.py file in /home/www-data/web2py/
web2py file is attached in /etc/nginx/sites-available/

my script is: 
https://raw.githubusercontent.com/web2py/web2py/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh

thanks for your help Jim.



5 Şubat 2016 Cuma 21:56:00 UTC+2 tarihinde Jim S yazdı:
>
> Did you install nginx after running the script?  nginx is automatically 
> installed by the script, you don't have to do it manually.
>
> If you didn't do that (I could be reading your message wrong), can you 
> post the following files?
>
> /home/www-data/web2py/routes.py
> /etc/nginx/sites-available/web2py
>
> They will tell us a bit about how it is behaving.
>
> -Jim
>
>
> On Friday, February 5, 2016 at 1:28:10 PM UTC-6, xmarx wrote:
>>
>> i read the deployment recipes page and nginx section again and again. i 
>> don`t see about `after install`
>>
>> i try install this script 
>> http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh after 
>> your message. when installing done. i type localhost on my browser. then i 
>> get web2py welcome page. but when i install nginx\ localhost is nginx`s 
>> welcome page. 
>>
>> thanks.
>>
>> 5 Şubat 2016 Cuma 17:54:39 UTC tarihinde Jim S yazdı:
>>>
>>> Actually, this is the link you want:
>>>
>>> http://web2py.com/books/default/chapter/29/13/deployment-recipes#Nginx
>>>
>>> Also, notice that there are automatic install scripts at the end of this 
>>> section for ubuntu and nginx.
>>>
>>> Assuming you're in production, you don't 'have' to run under nginx, it 
>>> is just recommended.  
>>>
>>> Once this is setup, web2py will be running through nginx and uwsgi, no 
>>> need to 'start' it with the web2py.py pgm.
>>>
>>> If you read through the docs it is explained pretty well.
>>>
>>> -Jim
>>>
>>>
>>> On Friday, February 5, 2016 at 11:52:16 AM UTC-6, Jim S wrote:
>>>>
>>>> Have you read through this?
>>>>
>>>>
>>>> http://web2py.com/books/default/chapter/29/13/deployment-recipes#Linux-and-Unix
>>>>
>>>> -Jim
>>>>
>>>> On Friday, February 5, 2016 at 11:33:57 AM UTC-6, xmarx wrote:
>>>>>
>>>>> i install on ubuntu web2py, nginx and uwsgi.
>>>>>
>>>>> when i run web2py (sudo python web2py.py) admin says Running on Rocket 
>>>>> 1.2.6, Python 2.7.10.  
>>>>>
>>>>> where did i mistake? it must run on nginx, am i right?
>>>>>
>>>>> thanks.
>>>>>
>>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: web2py
Description: Binary data

Reply via email to