PhpStorm Deployment menu greyed out

IdePhpstorm

Ide Problem Overview


I've added a server in PhpStorm deployment settings but the Tools -> Deployment -> Upload to menu is still greyed out.

Ide Solutions


Solution 1 - Ide

You need to specify a deployment path mapping in your server. Even if it's just the root path, you need to enter /. PhpStorm doesn't do it automatically.

Go to your server in deployment settings, click the 'Mappings' tab and enter slash (or your mapping) in the 'Deployment path on server' field. You don't need to enter a web path. Deployment menu should be ungreyed now.

Solution 2 - Ide

In version 2019.2, if you dont set the path to / in mapping, it will grayed out. Previous version, you could leave it blank

Solution 3 - Ide

Also, if your local path (inside mappings configuration) is not your project root, you have to click on the deployable folder in the project tree to enable the menu.

Solution 4 - Ide

Also, if the Deployment menu is completely missing at the bottom of the context menu, then set up a default server.

Click the server with the check mark to make a server the default option for a project.

enter image description here

Then you will get this additional menu when you right click on a file, folder, or the project.

enter image description here

Solution 5 - Ide

If deployment was available and suddenly no longer works, confirm that your credentials didn't get wiped from the deployment settings (Connection tab).

Solution 6 - Ide

If any of these answers don't help, because you can't even see the server menu, you probably have the Remote Hosts Access plugin disabled.

Go to settings, go to the plugins, and enable Remote Hosts Access.

Solution 7 - Ide

Please check if the following options are enabled in settings(Ctrl+Alt+S). It goes uncheck if Php Storm crashes. Check the below options and restart the editor.

Plugins list

This works for ver 2017.2.1 Also, check Windows->Store current layout as the default just to make sure in the future you can restore the layout.

Solution 8 - Ide

It's possible the opened file in the editor belongs to a External Library (bottom of project tree). These External library files can't be deployed.

Solution 9 - Ide

I also encountered this issue in PyCharm Professional 2022.1. Since the aforementioned solutions did not work for me, and it took me some time to resolve, I am providing the solution I found.

Clicking on Tools -> Deployment -> upload to servername was not working for me no matter what I tried.

However, I could right-click on the main project folder (on the left of the PyCharm window, where the project folder/file structure is visible). This right-click opens a menu, where there is an option for deployment -> upload to servername. Once I clicked this, not only it worked, but the classical way (Tools -> Deployment -> upload to ) ceased to be grayed out also.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiongeorgiecaseyView Question on Stackoverflow
Solution 1 - IdegeorgiecaseyView Answer on Stackoverflow
Solution 2 - IdeGrumpyView Answer on Stackoverflow
Solution 3 - IdeborisdiakurView Answer on Stackoverflow
Solution 4 - IdesteampoweredView Answer on Stackoverflow
Solution 5 - IdeKristen WaiteView Answer on Stackoverflow
Solution 6 - IdeRobView Answer on Stackoverflow
Solution 7 - IdejonesView Answer on Stackoverflow
Solution 8 - IdeDennis HendrickxView Answer on Stackoverflow
Solution 9 - IdePantelisView Answer on Stackoverflow