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

Kunzilla's avatar

Could not open input file: composer.phar

Hi there, i'am trying envoyer and need some help. I need to use the composer command:

php -d allow_url_fopen=On composer.phar

(It's a managed server)

When i deploy the project, this error shows up:

Using global Composer installation. Could not open input file: composer.phar

What can i do, whats the problem?

0 likes
1 reply
ejdelmonico's avatar

@kunzilla You can use deployment hooks to run extra commands. Just go to the repo settings and uncheck run composer. There is a before running composer hook. If that doesn't work, go to the server tab and edit...it gives an area for path to composer. Maybe that would do it for you.

Please or to participate in this conversation.