How to Install and Configure XAMPP

Facebooktwittergoogle_plusredditpinterestlinkedinmail

XAMPP is a free software. It simulates a real server and is used to test programs written in PHP or Perl languages. XAMPP is a set of connected software programs such as Apache, MySQL, FileZilla, Mercury, and Tomcat. The XAMPP set includes phpMyAdmin program, which can be used to manage permissions and to administer MySQL databases through the browser, or used as a substitution of MySQL, probably with restricted possibilities. This article will teach you how to install and configure XAMPP, which can be from here download.

Installing XAMPP

Follow these steps for installing XAMPP:

Step 1: Disable your anti-virus as it can cause some XAMPP components to behave erratically.

Step 2: Disable User Account Control (UAC). UAC limits write permissions to XAMPP’s default installation directory (c:/xampp), forcing you to install in a separate directory.

Step 3: Start the installation process by double-clicking on the XAMPP installer. Click ‘Next’ after the splash screen.

Step 4: Here, you can select the components you want to install. Choose the default selection and click ‘Next’.

 

Step 5: Choose the folder you want to install XAMPP in. This folder will hold all your web application files, so make sure to select a drive that has plenty of space.

Step 6: The next screen is a promo for BitNami, an app store for server software. Deselect the ‘Learn more about BitNami for XAMPP’ checkbox, unless you actually enjoy receiving promo mails!

Step 7: Setup is now ready to install XAMPP. Click Next and wait for the installer to unpack and install selected components. This may take a few minutes. You may be asked to approve Firewall access to certain components (such as Apache) during the installation process.

Step 8: Installation is now complete! Select the ‘Do you want to start the Control Panel now?’ checkbox to open the XAMPP control panel.

Understanding XAMPP Control Panel

The XAMPP control panel gives you complete control over all installed XAMPP components. You can use the CP to start/stop different modules, launch the Unix shell, open Windows explorer and see all operations running in the background.

Here is a quick overview of the Control Panel. For now, you only need to know how to start and stop an Apache server.

Testing Your XAMPP Installation

Follow these steps to test your XAMPP installation by launching the Apache web server and creating a simple PHP file.

Step 1: In the XAMPP control panel, click on ‘Start’ under ‘Actions’ for the Apache module. This instructs XAMPP to start the Apache webserver.

Step 2: Open your web browser and type in: http://localhost or 127.0.0.1

Step 3: Select your language from the splash screen.

Step 4: You should see the following screen. This means you’ve successfully installed XAMPP on your computer.

Step 5: We will now test whether XAMPP has installed PHP successfully. To do this, fire up Notepad and type the following into a new document:

<?php

   echo ‘Hello world’;

?>

Save this file as ‘test.php’ in c:\xampp\htdocs\ (or whichever directory you installed XAMPP in).

Step 6: Navigate to localhost/test.php. You should see the “Hello World” message:

Congratulations! You have now successfully installed XAMPP and even written your very first PHP program. You can now use your local Apache webserver to create and test complex PHP web apps, fiddle around with MySQL and even learn how actual web servers work with Tomcat, FileZilla, OpenSSL, and more. You can get started right away by learning LAMP development from the ground up in this course. Take this course for a more comprehensive take on programming with PHP and MySQL.

As always, we’d love to hear your thoughts and opinions on web development using XAMPP in the comments below!

6 comments on “How to Install and Configure XAMPP”

  1. blog says:

    I love this post ! i red your blog fairy often and you’re always cominig with some great stuff i shared this
    on my facebook and my followers loved it Keep up the goog
    work 🙂

  2. I need to to thank you for this very good read!!
    I absolutely loved every little bit of it. I
    have you saved as a favorite to look at new stuff you post…

  3. Excellent post. I was checking continuously this blog and I’m
    impressed! Extremely useful info specially the last part :
    ) I care for such info a lot. I was seeking this certain info for a long time.

    Thank you and good luck.

Leave a Reply

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

  • twitter
  • facebook
  • instagram
  • linkedin