Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPstorm FTP can't upload files

Tags:

phpstorm

ftp

Im trying to configure my PHPstorm with FTP so after a file is saved, it needs to be uploaded to the host. I can connect (i did the test) but i can't upload a file unless i change the file permission to 777 of my file. Any idea how this is possible? Here is the error:

[31/01/16 17:11] Failed to transfer file '/Applications/XAMPP/xamppfiles/htdocs/yventure.nl/app/Http/Controllers/Website/HomeController.php': cant open output connection for file "ftp://mm.server/app/Http/Controllers/Website/HomeController.php". Reason: "550 app/Http/Controllers/Website/HomeController.php: Permission denied".
[31/01/16 17:11] Automatic upload completed in less than a minute: 1 item failed

EDIT: i've enabled passive mode already

like image 429
Donny van V Avatar asked Jan 31 '16 16:01

Donny van V


People also ask

How do I turn off automatic upload in PhpStorm?

From the Upload changed files automatically to the default server list, choose when you want PhpStorm to upload changed files: To upload any manually or automatically saved file, choose Always. To upload only manually saved files, choose On explicit save action. To suppress automatic upload, choose Never.

How do I view the deployment logs in PhpStorm?

PhpStorm shows the logs in the File Transfer tool window ( View | Tool Windows | File Transfer ). In the Project tool window, right-click a file or folder, then select Deployment | Upload to from the context menu, and choose the target deployment server or server group from the list.

How to download files and folders in PhpStorm?

For downloading files and folders, PhpStorm supports only the manual mode. PhpStorm shows the logs in the File Transfer tool window ( View | Tool Windows | File Transfer ).

How do I delete remote files in PhpStorm?

Select Delete remote files when local are deleted to have PhpStorm automatically delete remote files during automatic uploads in case the local ones are deleted. Note that this option serves as an extra safety measure and may result in unwanted files remaining on the remote server.


2 Answers

I had same issue. I solved it

with "Passive Mode" in "Advanced Options" in Deployment >> FTP settings.

like image 115
Shakeel Ahmed Avatar answered Oct 21 '22 12:10

Shakeel Ahmed


you must try and valided :

  • the user right
  • the group right
  • SSH key/pair connexion
  • directory right
  • SFTP connection (not FTP)
like image 3
darkomen Avatar answered Oct 21 '22 12:10

darkomen