I have an instance running Linux at Amazon AWS EC2 after carefully 
following the instructions provided by Amazon here 
<http://docs.aws.amazon.com/gettingstarted/latest/wah-linux/getting-started-prereq.html>
.
I have set-up the security groups as mentioned in the documentation 
provided by Amazon.

The default security group has all traffic, all protocols, on all ports 
open.

In addition to the above security rule, I have setup SSH on port 22 and 
then, using CyberDuck (a great FTP app), I have uploaded the Web2Py source 
code into a folder named web2py at AWS.
After successfully FTP the source code into this web2py folder, I have 
SSH'ed into the AWS machine using the Terminal (on Mac locally) having the 
my-keys-file.pem on hand:

ssh -i my-keys-file.pem ec2-u...@ec2-xx-xx-xx-xx.compute-1.amazonaws.com

(where the xx are the numbers in the Public DNS as they appear on my 
instance on EC2 page)

Then I have checked whether my AWS instance has python installed and it 
does have it (v2.6.9).
Thus, I have proceeded to install Web2Py.

*python2.6 web2py.py*
*password = pwd*
it warns that GUI is not available since Tlk library is not installed, but 
Massimo says here 
<http://comments.gmane.org/gmane.comp.python.web2py/129181> that it's not 
critical.

*Running the Web2Py ....*
1. If I try:

python web2py.py -a pwd -i 0.0.0.0 -p 80

It says: there is an error with the Rocket Server with that specific port 
(used by another process that is not willing to share...)

2. Tried without mentioning the port:

python web2py.py -a pwd

it says nothing (which begs the question: is web2py running ?) and when I 
try to access the web2py server
http://ec2-xx-xx-xx-xxx.compute-1.amazonaws.com/ 
or
https://ec2-xx-xx-xx-xxx.compute-1.amazonaws.com/admin
in both cases it says page is not available since it takes too long to 
access it (nothing about security cause).

3. If I try:

python web2py.py -a pwd -i 0.0.0.0 -p 8000

again - it says nothing (is web2py running ?)
trying to access the Web2Py server at
http://ec2-xx-xx-xx-xxx.compute-1.amazonaws.com/ 
or
https://ec2-xx-xx-xx-xxx.compute-1.amazonaws.com/admin
in both cases it says page is not available, same as above.

4. I have tried to use the IP address instead, but it is immediately 
translated to the amazon format of ec2-xx-xx-xx-xxx.etc...
5. Tried to access the web2py, while explicitly mentioning the port (like 
http://ec2-xx-xx-xx-xxx.compute-1.amazonaws.com:8000/ 
<http://compute-1.amazonaws.com/>  - still it does not work, without 
mentioning the reason (except the page is not available)

My questions:
1. Is there any DETAILED recipe on how to install AND run Web2Py on AWS EC2 
? I couldn't find anything and the one recipe Massimo provided for AWS EC2 
on Ubuntu a couple of years ago - didn't help.
2. Is the web2py server running ? How can I know if it is running ? If it 
is not - what am I doing incorrectly ?
3. If the web2py server is running how can I access it ?

Any help would be much appreciated.
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to