Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Pendo's avatar
Level 10

Using PHPStorm to edit remote projects

Hi all,

coming from Adobe Dreamweaver, using PHPStorm was quiet the challenge in the beginning but there's still an issue where I'm making it harder on myself than it needs to be.

In Dreamweaver I had a live connection with my remote server and the filetree was a live view of the files on the server, much like an FTP client. PHPStorm does things differently, the filetree is a view of the files you have locally in the project. So far so good, because I got the hang of creating a project locally, creating a git repository and deploying the code using the terminal and some other tools.

But! In the past few years I've worked on a lot of websites in procedural PHP code, websites that aren't in any version control and where modifications are done in the live source or a copy on a remote server. I want to use PHPStorm for these sites aswel, but the way PHPStorm works isn't helping. The main reason for this is that I work on more than one device (office, home, laptop) on these websites, and while things go well as long as there is one device working on a project: multiple devices mess things up. Why? Because when I modify my website on Laptop A and I move to Desktop A, the files on my desktop system aren't automatically synced.

I've been searching at least a dozen times in the past few weeks but I can't seem to find anything related to this or a plugin that suits my needs. I can live with PHPStorm missing some functions (like opening files, search in filenames, etc.) if I get a live view of what's on the FTP because there is no local cache of all files.

Anyone else ran into this problem? I'm kinda stuck with an awful way of working on these projects right now (downloading the complete source when I'm in doubt if the files are synced or not).

Thanks!

0 likes
7 replies
Pendo's avatar
Level 10

Maybe I'm missing something, but I can't find what I'm looking for. This still has PHPStorm download all the files and not synching the online changes (or downloading the remote file every time).

poxin's avatar

I too would like to know this. The best I can figure is it will download remote files locally, then upload changes when you save them. This also makes it difficult to monitor changes such as the vendor folder (since it's quite large). If I add anything in artisan I have to resync the folder over manually, such as a controller.

There is an option to view remote files on the right and open them directly: http://i.imgur.com/7sWHN8t.png This isn't as good as the standard treeview unfortunately. Same menu under Tools > Deployment > Browns Remote Host.

The SFTP Plugin for Sublime also suffers from this. The best one I've found that works correctly is Atom using a plugin called Remote-FTP. It will show you all files on the remote host under the tree view and only download locally the file you are editing then sync it back up on save.

Pendo's avatar
Level 10

Yeah, I noticed Atom aswel. But I'd like to get used to a single editor. However, Atom is more like PHPStorm than Dreamweaver so if there aren't any options for PHPStorm I guess I'm stuck with either DW or Atom.

@poxin: thanks for the tip about the right site! Didn't notice it untill now. That works fine enough for me!

wickley's avatar

I wonder if you did that with Phpstorm if it would try to index the project over the remote connection? I'm guessing there's a way to turn the indexing off for certain projects.

wickley's avatar

Here's a way to do remote editing easy with Phpstorm.

  • First, create an empty project called "remote-editing" or whatever makes sense to you.
  • Next, in the settings Build, Execution, Deployment->Deployment add and test your remote connections as needed. Do not set a default connection.
  • After that, open the Browse Remote Host window accessible under the Phpstorm application menu Tools->Deployment->Browse Remote Host. You can set a hotkey to open and close this window quickly for convenience.
  • In the Remote Host window, you will see a drop down menu of the connections entered in the Phpstorm Deployment settings. Selecting one will connect and display the file tree.
  • From there you can edit remote files as needed and upload when completed. I'm not sue if there is a way to auto-upload on save. Phpstorm will allow you to connect to multiple remote hosts at once so you can edit multiple files on multiple servers all open at the same time.

Note that I don't use Phpstorm like this but set it up just now for testing purposes in this manner and these are my findings based on that limited testing, so I don't have much more to offer besides this. I did, however, know that I could edit files on any remote host listed in Phpstorm by using the Browse Remote Host option from any Phpstorm project.

If you set a default host in the Phpstorm Deployment settings for project, I don't think you can create new files or folders on a remote file system because the file structure is not matching and synced. I was able to create remote files and folders from Phpstorm using the method I described.

1 like

Please or to participate in this conversation.