Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 16632  / 2 Years ago, sat, july 23, 2022, 2:35:47

I recently installed Lampp server (version 1.7.7)
so I went to my local folder, which I believe is in /opt/lampp/htdocs because that's where I've installed my server, and wanted to create a folder where I can put my projects, but I couldn't because the option in the right-click menu isn't even available.



How can I create a directory here?


More From » permissions

 Answers
2

First off, I'd do what others have suggested and point your browser at your home folder for the project, but to answer your question....



It's not available because your user doesn't have write access to it, you could...




  • give your self access



    sudo chown $USER:webuser /opt/lampp/htdocs/
    sudo chmod 755 /opt/lampp/htdocs/

  • create the directory from the command line



    sudo mkdir /opt/lampp/htdocs/your_project
    sudo chown $USER:webuser /opt/lampp/htdocs/your_project
    sudo chmod 755 /opt/lampp/htdocs/your_project



Note on the chown one, check the webuser, probably www-data, but I've seen it as apache


[#39404] Sunday, July 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mance

Total Points: 198
Total Questions: 105
Total Answers: 128

Location: South Georgia
Member since Mon, Aug 16, 2021
3 Years ago
;