How to Download and Install XAMPP

How to Download, Install and Check XAMPP

Welcome to First PHP Development Tutorial. PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. PHP stand for the personal home page, but it is now known as PHP: Hypertext Preprocessor. It’s a server-side programming language.

We Normally use 2 Languages for creating simple sites HTML and PHP today we go through from PHP. So let start, first of all, we need an IDE Compiler to run our PHP code and XAMPPP is used for PHP development.

Download XAMPP

To download XAMPP click here for XAMPP official website.

XAMPP official download page
XAMPP official download page

Now from this window choose as according to your OS as I am using Windows, So I select XAMPPP for Windows, and now there are three options which have different versions.

Select the latest version from the website and click download.

Note: Download (32 bit) not means if your system is 64 bit it will not run on your system.

Installing XAMPP:

After when the download complete then open the setup file from your download location and run it

Step 1:

It’s a welcome screen you have to do here nothing if you want to quit installation click Cancel and if you want to Go ahead select Next.

XAMPP setup start
XAMPP setup start

Step 2:

Now from this next setup window, you have to select the components which you want to install as we use all of them later so select all of them and click Next.

XAMPP Select Components to install
XAMPP Select Components to install

Step 3:

Now in this window set the installation folder, if you are installing XAMPP for the first time in your system it makes no issue, but if XAMPP folder is already here, then you have to select some other empty folder and then click next.

XAMPP install Directory Select
XAMPP install Directory Select

Step 4:

This Window is just having information about XAMPP and Bitnami you have to do nothing here simple click next and the installation start and after installation finishes it.

XAMPP install complete
XAMPP install complete

Setting Up Project:

When you finish installation of XAMPP, the XAMPP control panel icon is start showing in the status bar. Now to start the XAMPP click on it or right-click on it.

XAMPP statusbar icon
XAMPP status bar icon

if you right click window like this is open and from here just start Apache for this time.

Start apache from XAMPP statusbar icon
Start Apache from XAMPP status bar icon

And it’s the same as above but maximize XAMPP control panel do here the same as above start Apache.

XAMPP Apache running
XAMPP Apache running

Note: While Starting Apache sometimes it shows an error that the ports were not free so just Quit Skype for some time and start it. It’s because Skype and Apache both run on Port 80. If you face such problem, see how to fix it. Or close skype and restart it after running Apache; Skype will configure itself on any other port automatically.

To ensure that your XAMPP is running open any browser and type in URL [Localhost] and it will show you the homepage. We will discuss Home page and option here.

Creating First PHP File:

To create Your first PHP project open the location where you install the XAMPP setup if you have not chosen any location while the setup it is by default [ C:/XAMPP ].Now All of your project files must place in folder name docs open it and save your PHP file here and run it.

htdocs folder in XAMPP
Htdocs folder in XAMPP


To create PHP file, open a simple notepad file write PHP code inside it and save it with extension. PHP inside that htdocs folder.

PHP echo hello world
PHP echo hello world

To test that file again write in browser =localhost\ { file name }.

This program above is a simple PHP program, and it prints Hello World on Browser screen.

The echo keyword in PHP is used for printing like cout in C++ and System.out.println() in Java.

Every PHP code starts with <?PHP and end with ?> and every line of code is terminated with a semicolon (;).