php phpstorm ftp设置
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10458381/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Phpstorm ftp setting
提问by run


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?
我已经设置了 FTP,当我双击 FTP 图标时,FTP 连接正常。它无法显示服务器的所有文件和目录,我想更改来自远程服务器的文件的一些代码,为什么?
回答by rtimoshenko
Click on "Advanced Options..." and toggle "Passive Mode".
单击“高级选项...”并切换“被动模式”。
回答by Heps
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.
在那里您可以定义许多 (S)FTP 服务器、使用映射、webpath。您必须填写“映射”页面,这有助于 phpStorm 确定本地文件应该发送到 FTP 路径的位置和方式。
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
如果您正确配置它(这很简单),您现在可以启用“自动上传”,它会在每个“保存”选项后激活文件上传!您还可以通过 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!
自动上传就像 phpStorm 中的魅力一样!
回答by adrianTNT
For me, enabling passive ftp didn't fix the grayed out ftp buttons. I did this:
对我来说,启用被动 ftp 并没有修复灰显的 ftp 按钮。我这样做了:
- Open the
Tools > Deployment > Configuration > Mappings - Changed a mapping path, saved, then changed it back and saved again.
- 打开
Tools > Deployment > Configuration > Mappings - 更改了映射路径,保存,然后将其改回并再次保存。
Then it worked, the buttons [Upload to], [Download from]were not grayed out anymore.
然后它起作用了,按钮[Upload to],[Download from]不再变灰。

