can't start play! server on ec2 (play! framework)

Daoud JAHDOU asked:

recently i have created a new ec2 instances (quick launch ) and i tried to deploy my Play! application the security group gives access to port 80 and port 22 (SSH)
but when i run :

play start 80

it gives me this

[error] Failed to bind to: /
[error] Use 'last' for the full log.

which means that the 80 port is used
when i run

netstat -tlnp 

i get

    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0      *                   LISTEN      3692/sendmail       
tcp        0      0        *                   LISTEN      3653/sshd           
tcp        0      0 :::22                       :::*                        LISTEN      3653/sshd 

i’ve searched all the web but i didn’t figure it out, help me please !

NOTE : i just solve this all i have to do is start it with sudo.

My answer:

Since you’re binding to a port below 1024, it must be started with root privileges.

Try something like:

sudo play start 80

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.