2

When using laravel task scheduling, I receive the following error message:

[ErrorException] escapeshellarg() has been disabled for security reasons

What is the problem and how can I fix it. In addition, I haven't access to php.ini file.

Here is my code:
In Kernel:

    protected function schedule(Schedule $schedule)
    {
        $schedule->call(function(){
            echo "SSS";
        })->everyMinute();
    }

Cron job in directadmin:

* * * * * php /path/to/artisan schedule:run >> /path/to/test11.txt

And test11.txt content:

[ErrorException] escapeshellarg() has been disabled for security reasons
Mehdi Rahimi
  • 1,453
  • 5
  • 20
  • 31

0 Answers0