Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phpstorm ftp setting

Tags:

php

phpstorm

enter image description here

the above is the screenshot.

i have set the FTP, the FTP connected ok, when i double clicked the FTP icon. it can't show all the files and directory of the server,i want to change some code of a file which from the remote server, why?

like image 406
run Avatar asked May 05 '12 02:05

run


People also ask

How to use FTP in PhpStorm?

Alternatively, from the main menu, select Tools | Deployment | Configuration.... and select the server configuration type depending on the protocol you are going to use to exchange the data with the server. FTP: choose this option to have PhpStorm access the server via the FTP file transfer protocol.

How do I setup a remote host?

You can configure the following settings on the General tab: Host Name: The host name or IP address of the Remote Host to connect to. If the host name entered in a Static Router filter matches this host name, the connection-specific settings configured on the Remote Host dialog are used when connecting to this host.


3 Answers

Click on "Advanced Options..." and toggle "Passive Mode".

like image 85
rtimoshenko Avatar answered Oct 18 '22 13:10

rtimoshenko


Don't use 'Remote Host' panel.

Try 'Deployment':

Menu Tools -> Deployment -> Configuration

There you can define many (S)FTP servers, use mappings, webpath. You have to fill "Mappings" page which helps phpStorm to figure out where and how exactly local files should be sent to FTP path.

If you will configure it correctly (which is quite simple) you can now enable "Automatic Upload" which activates files uploading after each "Save" option! You can also manually upload particular files from "Project" pane by RigthClick->Upload

If upload options are disabled (greyed out) try opening configuration again, select server from the list on the left and choose icon 'Set as default' (the 4th icon above left panel - server with green tick)

Automatic upload works like a charm in phpStorm!

like image 27
Heps Avatar answered Oct 18 '22 14:10

Heps


For me, enabling passive ftp didn't fix the grayed out ftp buttons. I did this:

  • Open the Tools > Deployment > Configuration > Mappings
  • Changed a mapping path, saved, then changed it back and saved again.

Then it worked, the buttons [Upload to], [Download from] were not grayed out anymore.

like image 45
adrianTNT Avatar answered Oct 18 '22 13:10

adrianTNT