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.)
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.
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.
I faced the same problem today. I just restarted the my machine, after that tried with the same port and it works!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With