Answer the question
In order to leave comments, you need to log in
PHP what is the best way to execute scripts?
It is necessary to execute bash scripts in php as root. the option to grant rights to the www-data user is not recommended (tell me why too), how would you implement such scripts?
ps linking via cron is not good. need online output of script results
Answer the question
In order to leave comments, you need to log in
One process (worker) always hangs in memory and is launched under a user with the necessary rights.
Another script - gives a task for execution through a unix socket and receives output into it during execution, which can be redirected directly to the browser.
If necessary, you can create a queue and "carry on a mail dialogue" through the database between these two scripts.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question