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

nipun's avatar
Level 2

Laravel sail with Ubuntu 22.04

I'm trying to create a new Laravel application with sail as documented here https://laravel.com/docs/9.x/installation#getting-started-on-linux.

Everything works fine and at the end, it says Dive in with: cd example-app-sail && ./vendor/bin/sail up.

But when I run it, it says no such file or directory: example-app-sail. And it's true. There is no folder name as example-app-sail.

So I have tried to re-install the same application with the command curl -s https://laravel.build/example-app-sail | bash and then it says Application already exists!.

But actually, I cant find a folder named example-app-sail in the directory.

Any idea about this ?

Thanks

0 likes
12 replies
Sinnbeck's avatar

If you run ls what folders do you see?

1 like
Sinnbeck's avatar

@nipun so you are inside a completely empty folder? What is the path?

1 like
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

@nipun try going to your home dir and make a folder there called dev or something. Enter it and run the sail command. Most likely the folder you are in is owned by root

nipun's avatar
Level 2

@Sinnbeck Thanks for the help. Yes, it's working. By any idea to use the folder HTML for this kind of stuff instead of going home?

Sinnbeck's avatar

@nipun yeah make sure that you are the owner of the folder. On my own dev computer I have made myself the owner of /var/www and store all of my projects here

/var/www/project-name

sudo chown nipun:nipun /var/www -R
1 like
Sinnbeck's avatar

@nipun but there is nothing wrong with having it in a folder in your home directory. I'm just used to /var/www from before docker. Old habits

1 like
nipun's avatar
Level 2

@Sinnbeck Yeah agreed. Just trying to be familiar with docker. I'm a beginner for docker actually. Really appreciate spending your time on this. Thanks

Please or to participate in this conversation.