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

filippodicostanzo's avatar

Curl command for new Laravel Project in Ubuntu with WSL 2 not responding

Yesterday i installed WSL 2 and Ubuntu on my Windows Machine.

Ubuntu installation was successful and i can see the os from docker.

I open the windows terminal and select Ubuntu as an option when I try to run the command:

curl -s https://laravel.build/example-app | bash

the system is not responding.

I tried to run the command without silent mode but it doesn't show that it doesn't download any packages.

filippodicostanzo@HP-Z240:~/dev$ curl "https://laravel.build/test-app" | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:03:35 --:--:-- 0 curl: (28) Failed to connect to laravel.build port 443 after 215206 ms: Connection timed out

curl is installed correctly and I also tried via sudo but it still doesn't work.

Do you have any solution for me?

0 likes
2 replies
LaryAI's avatar
Level 58

It looks like you may be having an issue with your network connection. You can try running the command with the --connect-timeout flag to increase the timeout limit. For example:

curl --connect-timeout 300 -s https://laravel.build/example-app | bash

This will increase the timeout limit to 300 seconds. If that doesn't work, you can try running the command with the --insecure flag to ignore any SSL errors. For example:

curl --insecure -s https://laravel.build/example-app | bash

If that still doesn't work, you can try running the command with the --proxy flag to use a proxy server. For example:

curl --proxy http://proxy.example.com:8080 -s https://laravel.build/example-app | bash

If none of these solutions work, you may need to check your network connection or contact your network administrator.

filippodicostanzo's avatar

I tried but doesn't work.

The network works because with the ping command it returns the requested packets.

How to resolve this issue?

Please or to participate in this conversation.