Hey guy, just so you know, you're in the wrong section here, you'd probably get more answers in the web development section, but if you want to access htdocs, just do this:
Right click the htdocs file > click get info > change permission settings in the bottom panel.
The row you want to change is "everyone" to "read and write"
It saves going through terminal if you aren't comfortable using it.