Score:0

How to enable web browser to open ~/Desktop/htdocs/index.html

it flag

My web browsers can't open ~/Desktop/htdocs/index.html (located on the desktop).

I tried right clicking on .html that is outside the htdocs folder (I usually successfully use 'Open with' in my old system.) But this is a new system and one of the browsers in this new system worked well two days ago.

I tried using the data in Can't create a folder inside my local server? There is no folder with the name 'lampp' in opt folder (I don't know whether it is essential to read the content). The following command didn't work.

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

The output was:

chown: invalid group: ‘myname:webuser’

So I couldn't proceed.

The only thing I want is to read the stuff in the htdocs (which is not protected). I have granted permission in the properties in the HTML document (text/html) file to use myself.

jp flag
Dan
`My web browsers can't open htdoc/index.html` How are you trying to access it? What do you get in your browser? Is your webserver configured? `There is nothing in opt folder` What do you mean by this? What does `opt` has to do with this? How did you install your lampp stack? Where is `hotdoc/index.html` located? Sorry for the pile of questions, but your question is very unclear as it is right now.
A.G. avatar
it flag
@Dan: I have clarified the possible doubts.
vn flag
I edited your question based on what you said. If it is on `~/Desktop` is not on `/opt/lampp/`. For this case you can just `chown $USER:$USER`
A.G. avatar
it flag
Thank you for your efforts for solving this issue. It was an error while copying the complete files from one system. A few of the files had missed. When I tried to copy all the files again it worked well. Thanks.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.