XAMPP Installation and configuration


XAMPP:  Cross-Platform (X), Apache (A), MySQL (M), PHP (P) and Perl (P).

It is a simple, lightweight Apache distribution that makes it extremely easy for developers to create a local web server for developing locally php application for testing purposes. Everything that you need for developing an application like a web server - server application (Apache), database (MySQL), and scripting language (PHP) - is included in a simple extractable file.

 XAMPP is also cross-platform, which means it works well on Linux, Mac and Windows. Since most actual web server deployments use the same components as XAMPP, it makes a local web server to a live server is extremely easy as well.

 

XAMPP Components:

1. Apache: Apache is the web server application that processes and delivers web content to a computer. Apache is the most popular web server online.

2. MySQL: Every web application, simple or complicated, requires a database for storing collected data. MySQL, which is open source, and the world's most popular database management system.

3. PHP: PHP stands for Hypertext Preprocessor. It is a server-side scripting language that powers some of the most popular websites in the world, including WordPress and Facebook. It is open source, relatively easy to learn, and works perfectly with MySQL, making it a popular choice for web developers.

4. Perl: Perl is a high-level, dynamic programming language used extensively in network programming, system admin, etc. Although less popular for web development purposes, Perl has a lot of niche applications.

Different versions of XAMPP may have additional components such as phpMyAdmin, OpenSSL, etc. to create full-fledged web servers.

 

XAMPP Installation:

There are so many versions are available for XAMPP Sever, we recommend to download latest version:

You can download XAMPP from here.

 

Follow these steps for installing XAMPP:

  1. Double click on XAMPP installer (.exe file) for starting installation.

 

https://lh4.googleusercontent.com/EJTROJe45LNS9dd12PxSkYK_qkiDSJOyBnHR8k56q5D4RlIIXMx26C9mZbIDweF0PMd9AT481I_z16OK-iNIm7rWCs_J4pdQBWRj-0emUgQ8IFJesEbnIVs-L4r05WeFcKk

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2. Click on next to proceed. In next screen you can select the components that you want to install. Choose the options and click on next.

 

https://lh4.googleusercontent.com/ANPCJwbermqj5mVXVyXmXLxgGN-7EuWcy_aYxzqKTKCFr9n0fnXBRe9np3wjAUhEmdxgUYHCM67RveNHR_vLkK7bNwN6FwSO-3jljIWlHCncC7uXHecs-b548AilEwBlqsQ

 

3.     In this step choose the folder where you want to install XAMPP. This folder will hold all your web application files.

 

https://lh4.googleusercontent.com/rZUnXTT-XdU20ilsx4zWRxSP_u3Hbrcq6JlFqU7tVK8tKO6n_smrAmY2xW2Dic4o_NZ83przWEb_OcvY1VHTak-sgnl1HQlTSUaHRqpJ9j3LtCuigk-MqlLFHQEkzrHdcDE

 

4. Click on next to complete your installation

 

https://lh5.googleusercontent.com/qSDJO-aDcp4PenpATG-5LalcdVpc-MqfxaFbqTanXBmfdqsrIg4Ca3Hj2rAwRhidyRM9XTLtb4THr_fgMXbQMHA1OuGi2CPUiu3TD8DVvyqyimv3S5_D8FafD9BC1ZmEymE

 

5.     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.

 

https://lh6.googleusercontent.com/4hZRlwZkSvFnGbQuUM0lS5m7kXcSRBaPeQnfvjEx-snSkhFgKajJzq5gtIpIxPVo7Wfo4JtU7ha1zu6dE2sAy44HaRxFYx2prTrNxrXY2R3OijD1BoeWiBbTn65GoTw__a0

 

Installation is now complete! Select the 'Do you want to start the Control Panel now?' checkbox to open the XAMPP control panel.

 

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.

https://lh5.googleusercontent.com/FsmtCZI6pMD6dqcyv8hUcU1cxL8gcZh7O4rhBaXVLzTT9-jXi22q_EfdVjZlAe7Yd6wKUlcCRUp4PGzgHdHyVq7UxUo5x0dVRJc0XmZQ-wmlXsd29wm7ijQNvLv7LMNvl2M

Testing Your XAMPP Installation

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

Note: 127.0.0.1 is the default ip address of our system you can also change this.

Step 3: Select your language.

https://lh5.googleusercontent.com/ABGpTles-Fok9mZBjr54eFGvz6_MIU2zyn0dqorwD_IrRhqdsmojHGYUKcvz_Y4TPl4NECJnC5ojayoVGS4Yakr722NpSvQpkLNo1kMdlfrWLXHfQu5pppgqm9QpwzMBbOU 

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

 

https://lh4.googleusercontent.com/Pi1txZPhDkwUFjTZx9M0ys6MwlRf_q35DQut4jP4AwM8HvOeQ1OCtBzsUkCubzUBgRj55GIhqY674rAFqnvFzS17i2qB8QUGOzBoD9oGCavkkD2iu8717YkQ2E-B2mpLKD8

Step 5: Now, we can test and run our script. To do this, you can use notepad or any other IED for writing your PHP code.

Open your notepad and write the following line of PHP Script:

   echo 'Hello world';

?>

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

Type the url 'localhost/test.php' in your browser. You should see the 'Hello World' message:

Hello World!

Congratulation, you have successfully installed the XAMP server. Enjoy programming.