Well the problem is:
1. I can't create any .php file inside htdocs folder
2. When I try to link htdocs folder to my home (with following command):
sudo ln -s ~/public_html /opt/lampp/htdocs/$USER
and make a index.html file in "public_html" and try to access http://localhost/<myusername> then it says that 'access forbidden'.
So my question is how do i get started with xampp in Linux?
When I'm in Windows I can create a folder inside htdocs folder and can view that folder going through http://localhost/<thefolder>/
Please help me I'm new to linux..