I start my websocket script like so:
nohup php server.php &
and I close the ssh client and it seems to be working fine for a while, but after say half an hour or so it stops working, any idea why and how to make it permanent?
I start my websocket script like so:
nohup php server.php &
and I close the ssh client and it seems to be working fine for a while, but after say half an hour or so it stops working, any idea why and how to make it permanent?
Try to use Tmux (or screen):
apt-get install tmux
after:
tmux attach; tmux new
and finally:
php server.php