PHP script is killed without explanation

前端 未结 5 644
失恋的感觉
失恋的感觉 2021-01-19 17:22

I\'m starting my php script in the following way:

bash  
cd \'path\'   
php -f \'scriptname\'.php

There is no output while the php script i

5条回答
  •  [愿得一人]
    2021-01-19 17:34

    If you are already taking care of php.ini settings related with script memory and timeout then may be its linux ssh connection which terminating in active session or some thing like that.

    You can use 'nohup' linux command run a command immune to hangups

    shell> nohup php -f 'scriptname'.php
    

    Edit:- You can close your session by adding '&' at end of command:-

    shell> nohup php -f 'scriptname'.php &> /dev/null &
    

    '&' operater at end of any comand in linux move that command in background

提交回复
热议问题