I try to run my script:
$exec_string = '/usr/bin/node /www/laravel/sitemap';
exec($exec_string,$output);
My script work fine from terminal (chmod and chown == ok). But when I run it from exec it finished after first async task. Node:
function callAddLink()
{
1..100 async_function() {
code and code...
IT STOPS HERE. NEXT ASYNC TASK NEVER CALLS!
}
}
Why it can happen? Code works fine everywhere except php exec.