IntelliJ IDEA 14.1.0 Help

Configure Remote PHP Interpreter

File | Settings | Languages and Frameworks | PHP


The dialog box opens when you click the Add toolbar button add in the lef-hand pane of the Interpreters dialog box.

Use this dialog box to configure access to PHP engines installed on remote hosts or in development environments set up in Vagrant instances.

ItemDescription
SSH Credentials Choose this option to configure access to a PHP interpreter on a remote host through SSH credentials. In the fields of the dialog box, specify the following:
  • Host: in this field, type the name of the host on which the PHP interpreter is installed.
  • Port: in this field, type the port which the SSH server on the remote host listens to. The default port number is 22.
  • User name: in the field, type the user name under which you are registered on the SSH server.
  • Auth type: from this drop-down list, choose the authentication method.
    • To access the host through a password, choose Password from the Auth type drop-down list and type the password.
    • To access the host through a pair of SSH keys, choose Key pair, then specify the path to the file where your private key is stored or the passphrase if you have configured it during the generation of the key pair.
Vagrant Choose this option to configure access to a PHP interpreter installed in a Vagrant instance using your Vagrant credentials. Technically, it is the folder where the VagrantFile configuration file for the desired environment is located. Based on this setting, IntelliJ IDEA detects the Vagrant host and shows it as a link in the Vagrant Host URL field.
Deployment Configuration Choose this option to configure access to a PHP interpreter on a remote host using a server access configuration. This option is available only if you have at least one server access configuration of the type SFTP, see Creating a Remote Server Configuration.

From the Deployment Configuration drop-down list, choose the server access configuration of the type SFTP according to which you want IntelliJ IDEA to connect to the target host. If the settings specified in the chosen configuration ensure successful connection, IntelliJ IDEA displays the URL address of the target host as a link in the Deployment Host URL field.

PHP Interpreter Path In this field, specify the location of the PHP executable file in accordance with the PHP development environment configured on the selected remote host. By default IntelliJ IDEA suggests the ust/bin/php folder. To specify another folder, click the Browse button browseButton and choose the relevant folder in the dialog box that opens.

When you click OK, IntelliJ IDEA checks whether the PHP executable is actually stored in the specified folder.

  • If no PHP executable is found, IntelliJ IDEA displays an error message asking you whether to continue searching or save the interpreter configuration anyway.
  • If the PHP executable is found, you return to the Interpreters where the installation folder and the detected version of the PHP interpreter are displayed in the General area.

See Also

Last modified: 14 July 2015