Page 1 of 1

htdocs + VS Code

PostPosted: 09. June 2021 17:20
by Today
I just started out with XAMPP, and I got error with VS Code

Failed to save 'project.php': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser.

Can anyone help me please?

http://joxi.net/nAybXLWsg0ynKr
Image

Re: htdocs + VS Code

PostPosted: 10. June 2021 13:12
by Nobbie
Your normal UserID does not have sufficient rights to create/write files in /opt/lampp/htdocs (thats how it is). There are multiple options to overcome that problem, for example start your editor via "sudo" (actually thats what the error message tells you!). Or change the file mode of htdocs so that everybody can write to it. Open a terminal an run this command:

sudo chmod 777 /opt/lampp/htdocs

You have to provide your password for "sudo". After then you can store all files into htdocs. Actually this is very basic linux knowlegde. Nothing special.

Re: htdocs + VS Code

PostPosted: 10. June 2021 13:51
by Today
[Solved]

Thanks, the issue is now fixed.