Ubuntu newbie trying to migrate from Windows.
I installed XAMPP, the installer placed the files in /opt/. I am trying to add my own work and after some digging I found that XAMPP serves files from the htdocs
folder.
When I try to save a php file from VSCode to that directory it fails due to permissions. How do I get around this? Am I missing something, is this how you use XAMPP? I looked on their websites but couldn't find anything which lead me to believe I must be doing something wrong.
I am applying the same approach I used with WAMP on Windows.
Thanks in advance.
EDIT:
I ended up setting up a symbolic link using the second solution from this answer. Thanks @pa4080 for pointing it out.