Option 2: Run in the background with nohup (works everywhere)Bashnohup php bot.php > bot.log 2>&1 & The bot keeps running after you close the terminal. Watch the log live: tail -f bot.log Stop it later: pkill -f "php bot.php"