0

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.

9
  • check server.php exist in your project folder or not? Commented Apr 7, 2021 at 9:50
  • Yes it exists and has the same content as when I create a fresh installation. Commented Apr 7, 2021 at 9:56
  • Does this answers you? Commented Apr 7, 2021 at 9:58
  • @BABAKASHRAFI No, unfortunately not. The path is configured as described in the linked question and the path is also sourced. Other laravel apps are working correctly. Commented Apr 7, 2021 at 10:02
  • Does this answer your question? stackoverflow.com/questions/55290052/… Commented Apr 7, 2021 at 10:14

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Happy that you find it, best of luck.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.