Php,linux vps

i want to run a php socket server as a daemon in a vps.
how it can be done?
in my local system i’m using windows os and running in command line
path/to/php.exe -q path/to/script/file.php

thanks for response.