I need to run a php script as daemon process (wait for instructions and do stuff). cron job will not do it for me because actions need to be taken as soon as instruction arr
You can
nohup as Henrik suggested.screen and run your PHP program as a regular process inside that. This gives you more control than using nohup. I'd recommend the simplest method (screen in my opinion) and then if you want more features or functionality, move to more complex methods.