ratchetphp / Ratchet

Asynchronous WebSocket server
http://socketo.me
MIT License
6.27k stars 740 forks source link

its not working on shared web hosting #976

Open mkamranmazhar opened 2 years ago

mkamranmazhar commented 2 years ago

Thank You so much For Your Amazing Ratchet PHP library.

it's Perfect Working on my localhost System with XAMPP.

But it's not working on my shared web hosting so please let me know how it's possible to run this app on shared hosting.

if you have any guide or documentation regarding Ratchet working on live hosting server so please share with me.

Best Regards.

WyriHaximus commented 2 years ago

Search through other issues. This has come up several times in the past, and either you can make it work but it depends on the shared hosting. Or you'll host to switch to a VPS or something that runs containers.

ejiroghene15 commented 2 years ago

Hi, @WyriHaximus. i'm also having the same issue, with the following error PHP Fatal error: Uncaught RuntimeException: Failed to listen on "tcp://0.0.0.0:80": Permission denied (EACCES)

WyriHaximus commented 2 years ago

@ejiroghene15 non-proviliged users can't listen on ports below 1024.

ejiroghene15 commented 2 years ago

i'm confused, what do you mean by non-privileged users, and how can i get a fix on that

Update: I've done the fix on this, all i just needed to do was change the port number. Thanks for the help.

WyriHaximus commented 2 years ago

Generally only root is a privileged user that can open ports from 0 to 1024. So yeah changing the port will fix that :)