0

I am using Laravel symfony process for background call in laravel on linux server. I have created artisan commands which takes long time to execute, so I have situation to call artisan command on background on button click. I got the solution but that worked on localhost not aws server.

I have used below solution:-

 $process = new Process('php artisan '.$task->command.' '.$task->parameters.' > /dev/null 2>&1 &','/var/www/html/datamanager/');
        $process->start();

It's working fine on local but not working on live server(linux aws server)

 $process = new Process('php artisan '.$task->command.' '.$task->parameters.' > /dev/null 2>&1 &','/var/www/html/datamanager/');
        $process->start();
        return $process->getOutput();
zlatan
  • 3,346
  • 2
  • 17
  • 35
Ankit
  • 1
  • 1

0 Answers0