I wrote a tutorial on how to set up the XAMPP server (Apache, PHP, MySQL , phpmyadmin and some others) under linux. I also explain how you can set up your public_html directory. View it here.