2

I want to add intellij php remote interpreter from vagrant and followed steps below.

https://confluence.jetbrains.com/display/PhpStorm/Working+with+Remote+PHP+Interpreters+in+PhpStorm#WorkingwithRemotePHPInterpretersinPhpStorm-DebuggingandRemotePHPInterpreters

But I got error

enter image description here

Error says VBoxManage command is not found in PATH, but I was able to find vboxmanage at my console.

 ~/Documents/sandbox/my-devenv/ [master*] which vboxmanage
/usr/local/bin/vboxmanage
 ~/Documents/sandbox/my-devenv/ [master*] vboxmanage -v
4.3.30r101610

I use vagrant 1.7.0 and Vboxmanage version is not too old. How can I fix it?

Sho Ogihara
  • 281
  • 2
  • 5

2 Answers2

4

This solved my problem on OS X:

sudo ln -s /usr/local/bin/VBoxManage /usr/bin/VBoxManage

Orginal source: https://stackoverflow.com/a/32601098/687684

Community
  • 1
  • 1
jcalonso
  • 1,473
  • 13
  • 19
0

Got the same problem this week after I've upgraded Virtualbox to the latest 4.3.30. Downgrading back to 4.3.26 solved the issue

mente
  • 2,746
  • 1
  • 27
  • 33
  • Thank you for your answering. I got workaround using ssh to vagrant and solved the problem. – Sho Ogihara Aug 10 '15 at 10:48
  • 1
    I used way "Adding a remote PHP interpreter over SSH" instead of "Adding a remote PHP interpreter from Vagrant" https://confluence.jetbrains.com/display/PhpStorm/Working+with+Remote+PHP+Interpreters+in+PhpStorm#WorkingwithRemotePHPInterpretersinPhpStorm-1.RegisteringanewPHPinterpreter – Sho Ogihara Aug 11 '15 at 23:43
  • @ShoOgihara afaik this way you won't be able to run phpunit tests correctly in VM – mente Oct 23 '15 at 13:21