A
A
Alexander2015-07-20 02:44:45
phpstorm
Alexander, 2015-07-20 02:44:45

How to work with vagrant composer through phpstorm?

Does anyone know how to work with composer in phpstorm configured to ssh to vagrant.
When downloading packages, it requires you to specify the path to php.exe, in the phpstorm settings I set it to look for php on the vagrant server, and it sees it and works with it.
And when you try to download packages in composer through the IDE, it requires you to specify the path to php.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
index0h, 2015-07-20
@index0h

Ems, you don't seem to understand what vagrant is...
Vagrant is a virtual machine configuration system.
If you want to use vagrant - the environment must be fully installed through the provision mechanisms (shell, ansible, salt-stack, putty, chef, ....), or later by hand (but this approach is usually bad)
This means that BOTH php AND composer should be installed on your guest machine (virtual, which is under vagrant).
In this case, the IDE should not be doing this.

A
Alexander, 2015-07-20
@Skara99

Of course, it's all there, the config was collected on puphpet

A
AndreyShatilov, 2015-08-22
@AndreyShatilov

I think you need to configure access to remote PHP, it is written here as: https://confluence.jetbrains.com/plugins/servlet/m...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question