In the linux terminal navigate to your lampp directory.
In the command line type:
sudo chmod 777 -R htdocs
The problem should be solved.
Now, I do not like to be the guy who waves the magic wand and says there you go; therefore, I am going to explain what you just did.
You navigated to the directory containing the protected directory. Your problem was that it was a folder that was access protected by your system. When you commanded chmod 777 -R htdocs, what you did was set the permissions for everyone on your computer to read/write/execute - allowed.
What is this 777 ? --> 7: you, 7: us, 7: them.
If you wrote chmod 700 then you (probably root, actually) would have all permissions, and then we (the "user group" in your system) would have no permissions, and everyone else, being the last 0 of the 700 would have none either. To deny everyone permissions it would be chmod 000. Clear? Now, you know what each digit means. It says who the number is about. Now each number from 0-7 sets a permission level. I will simply provide you a link for that.
I hope this helps.
I forgot to add why there is a -R. -R means the command is recursive and will affect htdocs as well as all subdirectories of htdocs and subdirectories of the subdirectories of htdocs.
These numbers do mean something: The first number sets the permissions for the owner, the second sets the permissions for the group, and the last number sets the permissions for anyone else (other). Look at the chart below to see what each number means:
Number Permission(s) Set
0 (zero) No Permissions
(the user(s) cannot do anything)
1 Execute Only
(the user(s) can only execute the file)
2 Write Only
(the user(s) can only write to the file)
3 Write and Execute Permissions
4 Read Only
5 Read and Execute Permissions
6 Read and Write Permissions
7 Read, Write and Execute Permissions
So, placing 7 in all three positions means that everyone in every group can read, write and execute the file. That is how we get the number 777 for this.
As another example, if you use chmod 650, here is the breakdown:
The first number, 6, gives the owner read and write permissions.
The second number, 5, gives the group read and execute permissions.
The last number, 0, gives all others no permissions for the file.