ok. this is documented in the book, but to sum it up, when you start web2py.py without the -i parameter by default it binds only to localhost (meaning it's accessible only from the same host it's running, in your case, the EC2 instance). if you want to reach it to http://theipaddress_ofec2instance:8000 all you have to do is to start it with
web2py.py -i 0.0.0.0 -a mypwd 0.0.0.0 is a "meta-address" that means "listen on all interfaces". On Saturday, January 3, 2015 5:41:18 PM UTC+1, NeoToren wrote: > > My apologies Niphlod, > > 1. I didn't mention that the result of the command ... python web2py.py > -a mypwd ... is actually : > > *web2py Web Framework* > *Created by Massimo Di Pierro, Copyright 2007-2015* > *Version 2.9.11-stable+timestamp.2014.09.15.23.35.11* > *Database drivers available: SQLite(sqlite3), MySQL(pymysql), > PostgreSQL(pg8000), IMAP(imaplib)* > *please visit:* > * http://127.0.0.1:8000/ <http://127.0.0.1:8000/>* > *use "kill -SIGTERM 27150" to shutdown the web2py server* > > 2. Being (very) new to Linux, I don't know much about nix, top , htop, > etc, and I am just following recipes... blindly. > With that being said - is web2py running on my Linux AWS EC2 instance ? If > so - how to access it ? > > Many thanks > NeoToren > > On Saturday, January 3, 2015 11:07:17 AM UTC-5, Niphlod wrote: >> >> AWS EC2 is nothing more of a linux server . to start executables >> listening on port 80 superuser permissions are needed, only "high ports" >> are allowed at "normal user" powers (that's why on production one usually >> deploys web2py BEHIND a real webserver). >> Enough of that said, starting with >> >> python web2py.py -a mypwd >> >> should print out exactly what prints out in any platform, which is >> >> web2py Web Framework >> Created by Massimo Di Pierro, Copyright 2007-2015 >> Version x.x.x....... >> Database drivers available: ................ >> blablabla >> >> if that doesn't come out, it's hardly a web2py issue...check in another >> terminal with top (or htop) if the process is running or if there is >> anything else going on. >> >> -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.