Muamar Collins
Muamar Collins

Reputation: 89

php artisan serve failing

Whenever I try to run the command, I get this. I'm trying to open a Laravel mix project into the development server

C:\laragon\www\feudal>php artisan serve
Starting Laravel development server: http://127.0.0.1:8000
[Wed Oct 14 11:11:11 2020] Failed to listen on 127.0.0.1:8000 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8001
[Wed Oct 14 11:11:11 2020] Failed to listen on 127.0.0.1:8001 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8002
[Wed Oct 14 11:11:12 2020] Failed to listen on 127.0.0.1:8002 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8003
[Wed Oct 14 11:11:12 2020] Failed to listen on 127.0.0.1:8003 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8004
[Wed Oct 14 11:11:13 2020] Failed to listen on 127.0.0.1:8004 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8005
[Wed Oct 14 11:11:13 2020] Failed to listen on 127.0.0.1:8005 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8006
[Wed Oct 14 11:11:14 2020] Failed to listen on 127.0.0.1:8006 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8007
[Wed Oct 14 11:11:14 2020] Failed to listen on 127.0.0.1:8007 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8008
[Wed Oct 14 11:11:15 2020] Failed to listen on 127.0.0.1:8008 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8009
[Wed Oct 14 11:11:15 2020] Failed to listen on 127.0.0.1:8009 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8010
[Wed Oct 14 11:11:16 2020] Failed to listen on 127.0.0.1:8010 (reason: ?)

Upvotes: -1

Views: 2591

Answers (1)

AHirsi
AHirsi

Reputation: 99

My php.ini had a setting of

variables_order = "EGPCS"

I removed the "E" and returned the setting to its default:

variables_order = "GPCS"

The change suggested by Patrick in a comment fixed the error: Here is the error:

"[Wed Feb 10 13:07:11 2021] Failed to listen on 127.0.0.1:8010 (reason: ?)"

After making the changes:

"[Wed Feb 10 13:10:22 2021] PHP 7.4.14 Development Server (http://127.0.0.1:8000) started"

Upvotes: 1

Related Questions