You are currently viewing How to install xampp on windows 10

How to install xampp on windows 10

This tutorial will guide you through the step by step process to install xampp on windows 10. Sometimes it happens you have installed xampp but unable to configure or not working, then following steps will solve your problem.
Here we are going to explore xampp on local machine environment and its good practice to use for beginners to work on local server instead of live server environment.

XAMPP is a free open source software that provides a web developer to install required components to run PHP based application like wordpress, drupal, magento and all other php based applications on Windows, MaxOS and Linux without wasting time and money easily. XAMPP stands for X- cross-platform, A- Apache, M- MySQL, P- PHP, P- Perl. 

How to install XAMPP on Windows 10

Use the following steps to download and  install xampp on windows 10 as local server environments.

  1. Download and install XAMPP from Apache Friends website.

         To download and install XAMPP, go to the apachefriends downloads page the official website of XAMPP, which gives you software installation file. You will find there XAMPP ready to download for cross-platform like Windows, Linux, Mac OS. Here we are discussing about windows plateform so we choose xampp for windows as per our php version requirements.

xampp-for-windows

   2. Run the downloaded installer(.exe) file and install XAMPP.

           a)  XAMPP setup Wizards

              Double-click the downloaded file to launch the installer and windows warning will appear. Click the OK button to start.

          b) Click the next button to proceed.

c) XAMPP provides a variety of components that you can install, such as MySQL, phpMyAdmin, PHP, Apache, and more. You can check the component which you want to install and uncheck the components you don’t want to install. For the most, you will be using most of these components, as such it’s recommended to leave the default options. Now click next to continue.

xampp-components-install

d) use the default installation location or you can choose the folder where you want to install. Here we are using default location and click the next button to continue.xampp-install-path

e) Now if you want to learn more about Bitnami check the ‘Learn more about Bitnami for XAMPP’ otherwise uncheck this and click the next button to continue.xampp-bitnami-learn

f) Now you’ll see another window with a message “Setup is now ready to begin installing XAMPP on your computer” like shown below. You just have to hit the ‘Next’ button to proceed.

XAMPP installation on Windows - Ready to install
XAMPP installation on Windows – Ready to install

g) Now XAMPP wizard will appear and wait for the installation to complete. 

xampp-installing

h) Click the Allow access button to allow the app through the firewall (if applicable).xampp-windows-firewall

i) After installation completed, setup wizard display whether you would like to start the control panel now or not, displaying the message “Do you want to start the control panel now?”. Check the checkbox and click on finish button to see, xampp is working fine or not.

complete-xampp-windows-10-install

3) Select your XAMPP Install Language

As you click on finish button of XAMPP installation steps, you will find a question regarding language selection “select the preferred language between English and German”. Now choose a language according to your choice and click on ‘Save’ button to confirm your selected language. Here i have selected English as my language.

xampp-install-language

4) XAMPP is now successfully Installed, run it

Once you complete the steps successfully, the XAMPP Control Panel will launch smoothly and you will display below image.

xampp-start

Now click on the ‘Start’ button corresponding to Apache and MySQL to start your local server and you can begin the web server environment configuration as per your needxampp-started

That’s all. You have successfully installed XAMPP on Windows 10 as local server. Once you start the modules like Apache and MySQL, you should see their status turn to green background.At the right side, you can see the process ID number and port numbers every module is using. You’re ready to go for your first project.

How to check your PHP version and Database on localhost

Once Xampp Control panel launched successfully, you can start Apache and MYSQL to check PHP and MYSQL, MariaDB Database configuration of your local server. To check, Open your web browser like Google chrome, Mozilla Firefox or Internet Explorer and in url just type http://localhost or http://localhost/dashboard/  and you will find below page including phpinfo and phpmyadmin on right side of menu.

localhost-dashboard

Click on phpinfo to check all the details like php version, port number and other related information like below.

phpinfo

Click on phpmyadmin to open your database and manage all database related operation like create, insert, update and delete.

phpmyadmin

Step to create first php program to print “Hello” on web browser using XAMPP.

Once you have done with above operation, now its time to run a simple php program and show steps how we can create a project in XAMPP.

To create a project go to C:\xampp\htdocs and make a folder as you want. Here i will create testphp folder and add a file index.php in it. In index.php i have written below code

<?php 
	echo 'test';
?>

Now i will run http://localhost/testphp and it will print ‘test’ on browser screen.

first php program

Leave a Reply