Deploying PHP Applications
On this page:
Synchronization with Web servers is provided via the Remote Hosts Access bundled plugin. The plugin is bundled with PhpStorm and activated by default. If the plugin is not activated, enable it on the Plugins page of the Settings / Preferences Dialog as described in Enabling and Disabling Plugins.
With PhpStorm, you can flexibly configure deployment of PHP applications. For example, you can set up your PHP project on a local Web server from the very beginning, or develop and test an application locally and then upload it to a remote Web server, etc.
By default, the sources are deployed according to the chosen configuration when you run your application. However, you can have PhpStorm upload files automatically every time they are changed. In this case the default server configuration is used.
- Create a local or remote Web server configuration.
- Define mappings between local folders, remote folders, and URL addresses.
- Customize the upload procedure by specifying additional options.
Uploading files automatically
To have updated files uploaded automatically, do one of the following:
- Choose on the main menu.
- Open the Settings dialog box, and click Options below the Deployment node. In the Options dialog box, select the Upload changed files automatically to the default server check box.