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

kmnurunnabi's avatar

Could not open input file: artisan, with **Sail**

I have sail installed in my laravel project. While container instance is running, I cannot run artisan commands using sail artisan that always show Could not open input file: artisan error. I am currently using Ubuntu 23.10. What can be the issue behind this?

0 likes
4 replies
gych's avatar

When you type ls in the CLI (terminal) do you see the artisan file in the list?

MohamedTammam's avatar

Maybe you have permission issues. Try running chmod -R 777 and try again.

Please or to participate in this conversation.