Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel development server failed to listen on 127.0.0.1:8000 #34255

Closed
mikecobb-io opened this issue Sep 10, 2020 · 7 comments
Closed

Laravel development server failed to listen on 127.0.0.1:8000 #34255

mikecobb-io opened this issue Sep 10, 2020 · 7 comments

Comments

@mikecobb-io
Copy link

  • Laravel Version: 8.0.3
  • PHP Version: 7.3.9 with all necessary extensions enabled
  • Database Driver & Version: MySQL 8.0.17
  • OS: Windows 10

Description:

After running composer create-project --prefer-dist laravel/laravel blog to create a new project the php artisan serve command fails to start the server. The terminal output is:

Starting Laravel development server: http://127.0.0.1:8000
[Thu Sep 10 14:02:24 2020] Failed to listen on 127.0.0.1:8000 (reason: ?)

It tries ten times before exiting. I have tried to start it on a different port but this also fails.

Other projects on the same machine running Laravel Framework 7.22.4 can all start the server.

Steps To Reproduce:

composer create-project --prefer-dist laravel/laravel blog
php artisan serve
@driesvints
Copy link
Member

We don't use Windows ourselves and we've had other reports that this works for people on Windows.

See #34229

@ynaderi1959
Copy link

Why did you close this issue.
I have the same problem.

@ynaderi1959
Copy link

  • Laravel Version: 8.0.3
  • PHP Version: 7.3.9 with all necessary extensions enabled
  • Database Driver & Version: MySQL 8.0.17
  • OS: Windows 10

Description:

After running composer create-project --prefer-dist laravel/laravel blog to create a new project the php artisan serve command fails to start the server. The terminal output is:

Starting Laravel development server: http://127.0.0.1:8000
[Thu Sep 10 14:02:24 2020] Failed to listen on 127.0.0.1:8000 (reason: ?)

It tries ten times before exiting. I have tried to start it on a different port but this also fails.

Other projects on the same machine running Laravel Framework 7.22.4 can all start the server.

Steps To Reproduce:

composer create-project --prefer-dist laravel/laravel blog
php artisan serve

I solved the problem by this link

@rysxa
Copy link

rysxa commented May 26, 2022

change php.ini-development to be php.ini

@geomorillo
Copy link

i already have a php.ini it doesnt work for me im on windows 10

@ozerozay
Copy link

ozerozay commented Jun 14, 2024

php -S 127.0.0.1:80 -t public/ worked for me.

@eniog
Copy link

eniog commented Oct 9, 2024

php -S 127.0.0.1:80 -t public/ Works for me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants