amazon ec2 - I can't start the php server in EC2

one text

I'm pretty new on AWS, I've tried to start my php chat, but when I use the command php chat-server.php, I get this error:

PHP Fatal error:  Uncaught RuntimeException: Failed to listen on "tcp://0.0.0.0:8080": Address already in use in /var/www/html/vendor/react/socket/src/TcpServer.php:164
Stack trace:
#0 /var/www/html/vendor/react/socket/src/Server.php(36): React\Socket\TcpServer->__construct('tcp://0.0.0.0:8...', Object(React\EventLoop\StreamSelectLoop), Array)
#1 /var/www/html/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php(59): React\Socket\Server->__construct('0.0.0.0:8080', Object(React\EventLoop\StreamSelectLoop))
#2 /var/www/html/chat-server.php(15): Ratchet\Server\IoServer::factory(Object(Ratchet\Http\HttpServer), 8080)
#3 {main}
  thrown in /var/www/html/vendor/react/socket/src/TcpServer.php on line 164

I'm using Ratchet, it really Works on my computer, I can text with the other browser, but in the EC2 I have this error, and it's impossible to start the server, please help me with that

Source