Sometime we need to set a PHP script as a background process in system, in previous tutorial we have learn how to set php script as background in windows.In this tutorial, we learn about set a PHP script in LINUX system through command line,its very easy to use.We need to run below command and script will run as a background process.
Command to execute PHP code in background process
nohup php test.php &
the & puts your process in the background.
If you want stop/kill this php script, then you need run below command: