#Have problem to get localhost server running using the command " php artisan serve"

1 messages · Page 1 of 1 (latest)

heavy elk
#

I've just installed Laravel using Herd and I've encountered an issue when testing a newly-created project. I tried to use the command "php artisan serve" to start the localhost server but the terminal threw out these messages: “Failed to listen on 127.0.0.1:* (reason: ?)”.

I looked up online and some say that they've encountered the same issue. They managed to fix it by modifying a line in php.ini file by changing the line variables_order = "EGPCS" to variables_order = "GPCS". I changed the line and run the command again but received the same messages. Is there something else going on that I need to check?

Here’s the screenshot of the messages:

vernal shard
#

First question, why are you using php artisan serve when you're using Herd..?

heavy elk
#

I can run the server on Herd?

vernal shard
#

That's one of the main functionalities of Herd, it serves your apps