When running php artisan serve
I get the error message:
$ php artisan serve
Starting Laravel development server: http://127.0.0.1:8000
sh: line 0: exec: : not found
Starting Laravel development server: http://127.0.0.1:8001
sh: line 0: exec: : not found
It will repeat trying to start on other ports but without success.
My installation worked fine a couple of days ago and I did not do any manual updates. What does the error message mean?
I also tested to setup a new Laravel project with laravel new test
and I can properly launch this. So I assume that all my tools are still correctly installed.
I solved it by myself. I had some wrong variable in my .env
file which messed up my php path. I deleted it and now everything runs fine:
PHP_BINARY="/opt/plesk/php/7.4/bin/php"
I used this to debug the site on my shared hosting server. Thanks everyone in the discussions for the good hints.