Tuesday, December 25, 2012

Installing and Configuring PHP and MySql with XAMPP in Windows

Xampp is a free web server that interprets php and perl programming language. It's mainly used to test the web application during the development.

Downloading xampp:

Go to the official website of xampp "http://www.apachefriends.org/en/xampp-windows.html" and download the xampp installer.

Installing the xampp:

  • Click on the downloaded xampp installer.
  • A Warning window will opens, click yes
  • Select a language and click OK
  • In the xampp installation wizard click next
  • Click browse, select local disk C or D(Your wish) to install xampp and click OK
  • Click Next
  • Check the buttons for install Apache, MySql and Filezilla as service
  • Click Install
  • Wait till the installation process is complete then click finish
  • Wait for these messages which shows "Congratulations! The installation was successful! Start XAMPP Control Panel now?" and click Yes and OK
  • Then xampp control panel will be opened with running Apache, MySql and FileZilla Services.

If you want to access Xampp control panel manually you can open it from C: or D: Drive >> xampp >> double click on xampp-control file.

Test the Xampp Installation:

  • Open browser and type this url "http://localhost"
  • Choose a language
  • After choosing a language, you should get a page which displays with a left menu of xampp
  • Click on Status on left menu of xampp page to check the status of xampp

Creating a PHP file:

Open Notepad and write the below code:


Save the above file in the xampp installed directory.
Example: "C:\xampp\htdocs\index.php"

Executing the PHP file:

Open the browser and type the below URL to execute the above saved php file.

Then the complete information about the installed softwares of xampp will be shown in the html page. here you can check the status of all the things.

Now you can write and execute any number php files in the htdocs.

Happy Coading...


  1. You did well on inspiring writers like me. Please keep on doing such content.
    Best PHP training in chennai
    PHP Training

  2. I have never read more interesting articles than yours before. You make me so easy to understand and I will continue to share this site. Thank you very much and more power!
    web development courses in chennai
    Web Development Training in chennai