Dump the XAMPP package and install each of the components separately. XAMPP wasn't designed for production servers.
First get Apache running. Alternatively, since you're using a Windows operating system you could use IIS instead since it's already part of your operating system.
Create a site/virtual directory on the web server for Moodle.
Install PHP and make sure it's working by running PHPInfo().
Install your database engine (MySQL, Postgres, MSSQL or Oracle) and create a blank database for Moodle.
Download the current stable build of Moodle from http://download.moodle.org/, example: http://download.moodle.org/download.php/stable25/moodle-latest-25.zip
Extract it to the Moodle folder that you mapped the IIS/Apache website to.
Create the Moodle config.php file by copying and renaming the config-dist.php file. Edit the config.php file and add all the required fields e.g. $cfg->wwwroot...
Open the website that you created in IIS/Apache. It should detect a new installation and start the Moodle setup. Follow the instructions on the screen...
All this is documented in much more detail on http://docs.moodle.org/25/en/Installing_Moodle