Question:

How to run a PHP server socket script in background in linux?

Answer:

Use below command

php -f server.php

To run in background you can use nohub

nohup php server.php &

if want to kill the process you use kill

kill processid

Keywords:

© 2017 QuizBucket.org