Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Artisan Error: Failed to listen on localhost:8000 (reason: An attempt was made to access a socket in a way forbidden by its access permissions. )

Tags:

laravel

I'm having problem starting my laravel installation. Whenever I type in the terminal php artisan serve, it throws me an error like below:

c:\wamp\www\blog>php artisan serve Laravel development server started on http://localhost:8000/

[Sat Nov 05 21:18:39 2016] Failed to listen on localhost:8000 (reason: An attempt was made to access a socket in a way forbidden by its access permissions.)

like image 757
buli.diriba Avatar asked Nov 06 '16 00:11

buli.diriba


People also ask

Why PHP artisan serve not working?

Reasons why php artisan serve not working You are running php artisan serve command in wrong directory. php artisan serve is laravel command only work with laravel project. Check project directory and run in root directory of your project. The requested host or port is not available.

What is PHP artisan serve in laravel?

The Laravel PHP artisan serve command helps running applications on the PHP development server. As a developer, you can use Laravel artisan serve to develop and test various functions within the application. It also accepts two additional options. You can use the host for changing application's address and port.


1 Answers

I faced the same problem today. I just restarted the my machine, after that tried with the same port and it works!

like image 127
Pratik Avatar answered Sep 21 '22 17:09

Pratik