How to make a second instance of PHP run a system outside the Apache root folder?

0

I have a PHP system that calls a "process B" with a very long execution, so I intend to use shell_exec("caminho/da/pasta/sistema_externo parametros"); so it runs in the background, ie another PHP process calls the file and executes, leaving "free" the web system. This call loads an entire system behind it and it can not stay in the% Apache root folder%.

How to execute the script in isolation, without allowing a user to execute the command but the system can freely achieve?

    
asked by anonymous 30.11.2018 / 20:13

0 answers