Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

angelorigo's avatar

Error booting sail

Hi,

I am new to Sail and start to learn with a project.

I run ./vendor/bin/sail up, and get the error message:

Error response from daemon: driver failed programming external connectivity on endpoint laravel-social-media-website-laravel.test-1 (6cb0c96d7d08d2ad1ab1cd2c647fb30593652ab6ceedc995f5fa2e23cf4f12e9): failed to bind port 0.0.0.0:80/tcp: Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use

Being new to sail how can i solve the error, and start the aplication ?

Thankś in advance

0 likes
3 replies
LaryAI's avatar

The error message:

failed to bind port 0.0.0.0:80/tcp: Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use

means that port 80 on your machine is already being used by another process. Laravel Sail tries to bind to port 80 by default, but it can't because something else is using it (often another web server like Apache or nginx).

How to solve:

1. Find and Stop the Process Using Port 80

On Linux/macOS:

Find the process:

sudo lsof -i :80

Stop the process (replace <PID> with the actual process ID):

sudo kill <PID>

On Windows:

Find the process:

netstat -ano | findstr :80

Then stop it in Task Manager or with:

taskkill /PID <PID> /F

2. Or, Change the Port Sail Uses

If you don't want to stop the other process, you can run Sail on a different port.

Edit your .env file and change the APP_PORT variable to something else, like 8080:

APP_PORT=8080

Then, bring Sail up again:

./vendor/bin/sail up

Now, access your application at http://localhost:8080.


Summary:
Either free up port 80, or change the port Sail uses by setting APP_PORT in your .env file. The second option is usually easier for beginners.

Let me know if you need more help!

vincent15000's avatar

You just need to stop the service running on port 80 on your machine.

Please or to participate in this conversation.