I recently started connecting to my server using PHPStrom, and I can send files(upload) to the server just fine, but after having searched and searched, I can not find a way to download files from server. Is this feature not possible in PHPStorm?

  • Have you set up a mapping between your local and remote folders? – Der Hochstapler Dec 12 '13 at 16:12
  • @OliverSalzburg I don't know what that means, but I am able to upload files to my server without any problems – samayo Dec 12 '13 at 16:15

To seamlessly up- and download files to and from your server, you're going to want to set up a deployment configuration with a mapping between a local and a remote folder. Here is how.

  1. Open the deployment configuration window by selecting ToolsDeploymentConfiguration... from the menu.

    enter image description here

  2. If you haven't already created a deployment connection, create one one. I have already created one here and switched the Mappings tab.

    enter image description here

    The Deployment path on server is the location on the server (relative to the Root path set up for the connection) where your project files are located.

  3. In the Remote Host panel, you'll now be able to download files to your project folder.

    enter image description here

    Additionally, you can also download the server version of a file, by using the options available under the Deployment submenu in the context menu in the Project panel.

  • Super answer. Although, I am only able to download the file then change it and then upload it back again. But, in I can't seem to edit it directly or directly modify it. It would be nice if you could shed some lights on that one. – samayo Dec 12 '13 at 16:44
  • @ANW: You can't really directly edit a file on the remote host. You can set PHPStorm up to automatically sync a file to the remote host when you save though. In Settings, under Deployment -> Options, check the setting Upload changed files automatically to the default server. You can set it to automatically upload on Ctrl+S. But be sure to mark a server as the default server in your deployment settings. There's a Mark as default button above the deployment configuration list. – Der Hochstapler Dec 12 '13 at 21:08
  • Where is Remote Host panel? – Julian Moreno Jun 7 '17 at 17:22
  • @JulianMoreno Sorry, I don't use WebStorm anymore and can't look it up for you. – Der Hochstapler Jun 12 '17 at 8:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.