DEV Community

Chidiebere Chukwudi
Chidiebere Chukwudi

Posted on • Updated on • Originally published at jovialcore.tech

Port 8080 already in use (laravel)

You get this kind of error for one reason: you are trying to run an app, example, a laravel project on the same port.

So here are two quick simple solutions :

A. Close the terminal where you initially ran php artisan serve by pressing ctrl + c then from your terminal, cd into the root folder of your OTHER laravel project, then run php artisan serve again.

OR

B. CD into your OTHER laravel app root directory. Then define another port in your terminal by typing the command php artisan serve --port=8081

Now, you have two different apps running on two ports: http://127.0.0.1:8000 and http://127.0.0.1:8081

I hope this helps.

Discussion (0)