Mezo wrote:i never had this issue when i was using Linux Mint 13 (32bit) XAMMP worked straight out of the box.
Yes, the problem is, that you "normally" work with files only in your "Home Directory" (/home/Userid) and your UserId has all permissions to change any files there. But now you are leaving your home, you are entering /opt/lampp and /opt/lampp/htdocs - these directories are not part of your home and you do not have sufficient permissions for these directories. Thats all.
You may change this easily by changing either:
a) the permissions of /opt/lampp and all folders beyond (chmod -R 0777 /opt/lampp/htdocs)
b) change the Owner of /opt/lampp/htdocs to your own UserId (chown UserId /opt/lampp/htdocs)
If you decide to change the ownership of /opt/lampp/htdocs to your UserId, it is good idea also to change the user which executes Apache as well to your UserId (you find a line "User = ...." in httpd.conf). I would do so, because you are the only real user of your linux PC anyway. Beware that you have to execute the chown and chmod commands as root (su).