PHP Websocket on Bluehost

﹥>﹥吖頭↗ 提交于 2019-12-01 13:13:57

问题


I am trying to setup Websocket based PHP chat application from Chat-Using-WebSocket-and-PHP-Socket on Bluehost on domain XYZ.ABC.com.

I have changed $host to XYZ.ABC.com both in server.php & index.php.

I am not able find a way to invoke & keep server.php alive.

Is any other way to get this done? even switching hosing provider works for me.


回答1:


If you have shell access you need to run the script with

nohup <command> &

It will then run in background and not stop if you leave the shell.

If you don't have SSH access there is no chance in keeping it alive. Look for a cheap vserver or rootserver with SSH access then.



来源:https://stackoverflow.com/questions/36182900/php-websocket-on-bluehost

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!