Howto web2py on Amazon EC2

494 views
Skip to first unread message

António Ramos

unread,
May 13, 2013, 7:00:49 AM5/13/13
to web...@googlegroups.com
hello, i want to test amazon ec2 with my web2py apps.

Is there some tricks and tips about amazon ec2?

Thank you
António

Massimo Di Pierro

unread,
May 13, 2013, 7:50:57 AM5/13/13
to web...@googlegroups.com
Not really.It runs there as any other VM.

António Ramos

unread,
May 13, 2013, 9:02:52 AM5/13/13
to web...@googlegroups.com
Its running locally in a ubuntu machine in amazon ec2

python web2py -p 8001 -a 123

remotely using putty to tunnel i get the error

Not Found


HTTP Error 404. The requested resource is not found.



2013/5/13 Massimo Di Pierro <massimo....@gmail.com>
--
 
---
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 web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

samuel bonilla

unread,
May 13, 2013, 3:18:22 PM5/13/13
to web...@googlegroups.com
web2py in amazon ec2 is a good opcion..... my app (www.foxter.co) run in a amazon instance with mysql

António Ramos

unread,
May 14, 2013, 6:50:10 AM5/14/13
to web...@googlegroups.com
i started a ubuntu 13.04 in amazon ec2 to test my web2py app.  

i cannot use port 80 and 443 . i get an error from rocket saying its in use and cannot share.

i telnet to port 80 and 4434 and they are not open 

Help please.




2013/5/13 samuel bonilla <pytho...@gmail.com>
--

samuel bonilla

unread,
May 14, 2013, 10:12:49 AM5/14/13
to web...@googlegroups.com
into folder:  web2py/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh


2013/5/14 António Ramos <ramst...@gmail.com>

--
 
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/hPqWw4CODcI/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.

Marco Túlio Cícero de M. Porto

unread,
May 14, 2013, 10:56:26 AM5/14/13
to web...@googlegroups.com
Antonio,

on Amazon, everything except port 22 (ssh) is blocked on default. You'll have to go Security Group/Inbound and add the ports you want to open.

To access your instance, you can right click it and use "connect" or you can get the public address given to your instance (appears on your management console when you click on your instance).

also, as Samuel wrote, use the following script once you made the previous steps.  
web2py/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh - if you want to use nginx. If you want apache, there's another script there. Both will work for you.

Also, as Massimo said, it should run smoth as in any other VM.

Good luck!




2013/5/14 samuel bonilla <pytho...@gmail.com>



--
[]'s
Marco Tulio

António Ramos

unread,
May 14, 2013, 11:30:06 AM5/14/13
to web...@googlegroups.com
I´now have it running ok.
The problem is that ubuntu cannot start web2py on ports <1024 beause its not root.

So i sudo python web2py ...etc

It worlks now. 
Thank u all


2013/5/14 Marco Túlio Cícero de M. Porto <mtcp...@gmail.com>
Reply all
Reply to author
Forward
0 new messages