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?
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?
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
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.
© 2022 - 2024 — McMap. All rights reserved.