H
H
hackerskater2016-04-20 22:45:22
linux
hackerskater, 2016-04-20 22:45:22

How to run a php script on a linux server that would always work?

I have a script that needs to be run for a long time not in one session, I run it using the php command directory path. But again, this way it will only work while the session is open. I heard that you need to do this, php path -> console.log (for example). Help I will be grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
index0h, 2016-04-20
@hackerskater

nohup php /path/to/file.php &

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question