Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

When I try executing the php artisan serve command in my terminal on laravel 5.0 I'm getting this error.

Failed to listen on localhost:8000 (reason: php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known)

I'm on a mac using MAMP, my /etc/hosts file contains:

127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
share|improve this question
    
You could use php -S localhost:8000 -t public/ but I think I remember reading from Taylor Otwell that Homestead or another VM is the recommended development environment. –  AndrewCaulfield Mar 17 at 4:34
    
Is something else using port 8000? You could try php artisan serve --port=8888 and see if that helps. –  kieranajp May 7 at 15:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.