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

bart's avatar
Level 13

composer: command not found

Hey everybody,

I'm currently playing around with forge but getting the following error when trying to deploy my gitlab repository:

# gitlab.com:22 SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu1
# gitlab.com:22 SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu1
# gitlab.com:22 SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu1
Cloning into 'default'...
/home/forge/.forge/provision-5426039.sh: line 30: composer: command not found

Do you have any idea what's wring here?

Thanks a lot.

0 likes
3 replies
bart's avatar
Level 13

Well what I don't understand is, that I deployed the server using forge as well. So it's not a custom one. So imho when I create a new server via forge it should all required dependencies, shouldn't it?

bart's avatar
Level 13

Okay, it seems like I have to install all the dependencies on my own like some php extensions, composer itself and so far. But then it works.

Please or to participate in this conversation.