Coding Tips

How To Install Xampp On Your Machine And How To Test If Working.

As a web Developer we need some local server to host our code so we can preview and run them offline to know how they are working and to know if we are having bugs or not that is why we need XAMPP to do This , So this article will teach you what XAMPP is and how you can install it on your machine.


Before we begin properly let know what xampp is and what its used for, XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP and Perl programming languages.

How To Install XAMPP On You Machine

  1. Download XAMPP from Apache Friends. Here

Note: If you have special version requirements for PHP, then download the version you’re required to install. If you don’t have a version requirement, then download the oldest version, as it may help you to avoid issues trying to install a PHP based software.
Double-click the file to run the installer.

  1. Click the OK button on the warning to continue
  2. Click the Next button.
  3. XAMPP offers a variety of components that you can install, such as MySQL, phpMyAdmin, PHP, Apache, and more. For the most part, you will be using most of these components, as such it’s recommended to leave the default options and click the Next button.
  4. Use the default install location settings, or choose another folder to install the software, and click the Next button.
  5. Clear the Learn more about Bitnami for XAMPP option.
  6. Click the Allow access button to allow the app through the firewall (if applicable).
  7. Click the Finish button.
  8. Choose your language (English or German).
  9. Click the Save button.
  10. Once you’ve completed the steps, the XAMPP Control Panel will launch, and you can begin the web server environment configuration.

How To Test RUN XAMPP To Know If It Working

Now go to where u installed xampp by default it will be at your local drive open the xampp folder go to htdocs and create a folder name Winnercodez (you can name it anything) create a file using your text editor, save it as index.php and type.
Do not bother about the code if you dont understand because it will be explained later.

   echo “My first PHP code <br />”;
   echo “Zolook is cool <br />”;
   echo “PHP is fun <br />”;

Then save it and go to your browser and search for localhost/foldername/index.php.
You will get your result


If confirmed working let us know commenting below  

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button