Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated old Project Settings data with new one

...

A remote interpreter can be configured in a similar way as a local one. We can specify the PHP interpreter we want to use in Project File | Settings (or PhpStorm | Preferences for Mac) | Languages & Frameworks | PHP. This can be a local PHP installation or a remote PHP executable. Clicking ... next to the selected interpreter will open a list of registered PHP interpreters. Click the green + to add a new Remote....

...

Once a remote PHP interpreter is registered and configured, we can set up our project to use it during development. Simply select it in the dropdown list in Project Settings | in File | Settings (or PhpStorm | Preferences for Mac) | Languages & Frameworks | PHP.

Once configured, all our Run/Debug configurations will make use of the configured PHP interpreter. Since we just configured a remote PHP interpreter as the one that should be used for our project, the following run configuration will always run on the remote server or Vagrant machine. All paths in Run/Debug Configuration should be local, they'll be automatically mapped to remote server local paths by the IDE.

...

1. Make sure that remote PHP interpreter is configured and selected for current project in Settings/Preferences in File | Settings (or PhpStorm | Preferences for Mac) | Languages & Frameworks | PHP, and Xdebug extension is installed (read more on Xdebug installation).

2. Configure SFTP deployment server that matches Remote Interpreter settings in Settings/Preferences settings in File | Settings (or PhpStorm | Preferences for Mac) | Build, Execution, Deployment | Deployment with proper mappings (if you don't have it configured yet).

...

We can also run PHPUnit tests using remote PHP interpreters. To do so, configure a remote PHP interpreter first. Next, click the green + button in Project Settings | PHP | PHPUnit in File | Settings (or PhpStorm | Preferences for Mac) | Languages & Frameworks | PHP | Test Frameworks and add PHPUnit settings By Remote Interpreter.

...