Trying to setup PHP WebSockets Server

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
QuickQAnonymous
A regular
A regular
Posts: 44
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Feb 19, 2015 6:50 am

Trying to setup PHP WebSockets Server

Post by QuickQAnonymous »

Hello! I am trying to setup a PHP WebSockets server using this PHP class. However, there is the problem that all scripts are terminated after 90 seconds. I could technically use crontab, but that would be abuse. A solution would be to repeatedly run it, but that would make my computer become almost server, and my computer cant be on 24/7. I am using sockets to make a chatroom, so hopefully you see and understand my predicament. What can I do? Thanks!
User avatar
Spray
Former staff
Former staff
Posts: 630
Joined: Wed Dec 28, 2011 10:41 pm
Location: Oregon

Re: Trying to setup PHP WebSockets Server

Post by Spray »

A web application like this would be much better suited to a VDS, where you have full shell access and can run the script 24/7. Our standalone webhosting is not intended to be used with daemons or any listening scripts, like this socket server. Our single-core Linux VDS package is priced very affordably and would be perfectly suited to run this.
QuickQAnonymous
A regular
A regular
Posts: 44
Joined: Thu Feb 19, 2015 6:50 am

Re: Trying to setup PHP WebSockets Server

Post by QuickQAnonymous »

Spray wrote:A web application like this would be much better suited to a VDS, where you have full shell access and can run the script 24/7. Our standalone webhosting is not intended to be used with daemons or any listening scripts, like this socket server. Our single-core Linux VDS package is priced very affordably and would be perfectly suited to run this.
So VDS/VPS is the only way to do this? Oh well. I might get it soon. I don't know. Thanks though.
Post Reply