htdocs + VS Code

Problems with the Linux version of XAMPP, questions, comments, and anything related.

htdocs + VS Code

Postby Today » 09. June 2021 17:20

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
Today
 
Posts: 2
Joined: 09. June 2021 16:26
XAMPP version: 7.4
Operating System: ubuntu

Re: htdocs + VS Code

Postby Nobbie » 10. June 2021 13:12

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.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

Re: htdocs + VS Code

Postby Today » 10. June 2021 13:51

[Solved]

Thanks, the issue is now fixed.
Today
 
Posts: 2
Joined: 09. June 2021 16:26
XAMPP version: 7.4
Operating System: ubuntu


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 13 guests