SSH: how to run a PHP script in background forever in Linux (CentOS) ?

If you want to run a PHP¬†script in the background forever through SSH then follow these steps: If you are using a SSH terminal (PuTTY) then directly run following command: // Notice ‘&’; that operator will help to run this script forever. php server.php & // make sure that you are in the root directory […]