PhpStorm 2018.1 Help

Initializing Vagrant Boxes

PhpStorm makes it possible to execute the init procedure on a project root. After performing init on a project root, the Vagrant configuration file named Vagrantfile is created there. This file can be used for creating a remote interpreter.

Initializing a virtual box

  1. On the main menu, choose Tools | Vagrant | Init in Project Root.
  2. In the Select Vagrant Folder pop-up menu, select the project root to be used:
    vagrant_select_folder
  3. Since it is possible to have multiple virtual boxes, specify the particular box you want to work with:
    vagrant_select_box

    The vagrant init command is launched, and shows its output messages in the Run tool window.

If the Vagrant executable is not specified in the Vagrant page, you can still initialize a Vagrant box. However, in this situation, PhpStorm pops up a file browser, enabling you to select Vagrant executable.

Activating a virtual box

Once init is successfully completed, you are ready to perform the vagrant up command and import to the root the box used at initialization.

To activate a virtual box by executing the Vagrant up command, choose Tools | Vagrant | Up on the main menu. The vagrant up command is launched, and shows its output messages in the Run tool window.

Last modified: 27 July 2018

See Also

Reference:

External Links: