PhpStorm 2022.2 Help

Access files on web servers

Once you have set up synchronization between your local application sources and the application sources on a server, you can create new folders, move, rename, and delete existing files and folders. You can also compare files and folders on the server with their local versions.

For the sake of simplicity, any file or folder in your PhpStorm project is called local and any file or folder on the server is called remote, even if the server is actually installed on your machine. For details, see Configure synchronization with a Web server.

Although PhpStorm supports direct editing of individual non-project files on servers, to get full coding assistance either download the sources from the server and arrange them in a PhpStorm project or upload the local sources to the server. In either case, to keep your local and remote sources synchronized, configure automatic upload using the Upload changed files automatically to the default server list in the Options dialog.

PhpStorm uses server configurations to control access to servers (FTP, FTPS, SFTP, WebDAV, or Local or Mounted Folder).

Access a remote server

  1. Open the Remote Host tool window by choosing Tools | Deployment | Browse Remote Host or View | Tool Windows | Remote Host from the main menu.

  2. Select the required deployment server from the list. The tool window shows a tree view of files and folders under the server root. If no relevant server is available in the list, click the Browse button, and in the Deployment dialog that opens configure access to the required server.

From the Remote Host tool window, you can right-click files and directories to create, move, rename, and delete files and folders on the server, as well as upload and download the desired items.

Last modified: 14 March 2022