sudo su while uploading files via PhpStorm
Asked Answered
I

2

8

I have configured PhpStorm for remote server. But, to write a file I need root access so when I am doing it on server I do sudo su and PhpStorm throws permission denied error !

Any idea how I can configure PhpStorm to handle this scenario?

Inoffensive answered 23/11, 2016 at 0:1 Comment(0)
H
0

In phpStorm 2023, Tools -> deployment -> configuration, check "Use Sudo to run SFTP sever" and you will be asked the password. Then restart phpStorm and you will be able to edit files in remote server and transfer them back

enter image description here

Hewlett answered 13/4 at 9:17 Comment(0)
D
-6

If you need to be root to write the project files on the server then you're probably doing something wrong.

But you can ssh to the server, use sudo su to elevate to admin then change the owner and/or rights of the project files to allow the non-privileged user you use with phpstorm to upload them.

Downright answered 23/11, 2016 at 0:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.