DEV Community

Chidiebere Chukwudi
Chidiebere Chukwudi

Posted on • Edited 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.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay