Posted on: September 20, 2022 03:18 PM
Posted by: Renato
Views: 1078
Artisan Error: Failed to listen on localhost:8000
I'm having a problem starting my laravel installation. Whenever I type in the terminal 'php artisan serve' it responses me an error:
Failed to listen on localhost:8000 (reason:une tentative d'access un α socket de maniere interdite par ses autorisation d'access a 0t0 tent0e)
any ideas on how to solve this?
it's working now I just changed the listen port from 8000 to 8888 or any other port your services didn't use it
'php artisan serve --port="8888"'
Fixing Error: Failed to listen on localhost:8000 (reason: Address already in use)
List processes with php in it
ps -ef | grep php
Example output
501 **9347** 393 0 1:29PM ttys000 0:00.21 php artisan serve
501 9351 **9347** 0 1:29PM ttys000 0:02.01 /usr/local/php5-5.6.14-20151002-085853/bin/php -S localhost:8000 .../laravel/server.php
501 9781 393 0 1:56PM ttys000 0:00.00 grep php
Then kill the process
kill -9 9347
- https://stackoverflow.com/questions/27900174/artisan-error-failed-to-listen-on-localhost8000
Donate to Site
Renato
Developer