Installing PHP on your local machine allows you to safely create and test a web application without affecting the data on your live website. This article describes the complete PHP installation. If your server supports PHP, then you do not need to do anything. Just create your PHP files, put them in your Web Directory, and the server will automatically parse them—no need to Compile anything.
Read Also: What Is PHP and How to Use PHP
How to Install PHP?
This unit explains how to install PHP on windows. It includes how to install the complete PHP, Apache, and MySQL on your System.
There are many options available as given below:
- WAMP for windows
- LAMP for Linux
- MAMP for Mac
- SAMP for Solaris
- FAMP for FreeBSD
- XAMP: It is an abbreviation for cross-platform, Apache, MySQL, PHP, and Perl, and it allows you to build sites offline on a local web server on your System. This simple and lightweight solution works on Windows, Linux, and Mac.
Steps to Install XAMPP on Windows 10
XAMPP is abbreviate as X Stands for Cross-Platform,(A) Apache Server, (M) MariaDB, and (P) Perl. The Cross-Platform means that it can run on any computer with any operating system.
Step 1: Download XAMPP Installer
In the web browser type the XAMMP, You can Easily Download XAMPP from https://www.apachefriends.org. According to your Window Requirement. It is an Open Source Platform.
Step 2: Run XAMPP Installer
Now open the XAMPP Installer by double-clicking the “.exe” XAMPP setup file.
Step 3: Select Modules to Be Installed Along With PHP
Now the XAMPP setup window will appear. In the setup window, select the components which are required for your PHP project.
Step 4: Select Installation Folder for XAMPP
The next step is to select the destination folder for XAMPP. You can choose your desired destination on your working machine or accept the default “C:\xampp” destination and then click the “Next” button.
Step 5: Complete the XAMPP Installation Process
Just after clicking on the “Next” button, your installation process will be started. The installation process will take a few minutes to finish.
Step 6: Finishing the XAMPP Installation
Now click on the “Finish” button to finish the XAMPP installation.
Step 7: Open the Xampp Control Panel
You can find XAMPP icon on your Desktop or Start Menu. Just double click it, and the XAMPP Control Panel will appear on the desktop.
The control panel contains several buttons like Config, Netstat, Shell, Explorer, Services, Help, Quit.
- Config: It allows the user to configure the XAMPP and individual components.
- Netstat: It shows all the running processes on the local machine.
- Shell: It allows the user to open the Unix Shell/Windows Command Prompt.
- Explorer: It opens the XAMPP folder.
- Services: Shows all the services that are running in the back-end.
- Help: It gives the link to the User Forums.
- Quit: To shut down the XAMPP.
Step 8: Start Apache From XAMPP Control Panel
In the XAMPP control panel, click the elements which are required for your project. You can start the module by clicking the “Start” button on the right side. You will be able to see the active modules highlighted in green.
If the XAMPP faces any errors while starting any module, it will appear at the bottom console in red fonts with a complete cause of a mistake.
Step 9: Configure XAMPP Modules From Admin
From the Xampp Control Panel, you will be able to configure each module separately. Just click on the “Admin” button on the right side of the module, which you need to configure.
Step 10: Open XAMPP Admin Dashboard
That’s it now, in your browser type Localhost, and you will able to see the admin screen of XAMPP.
Now the XAMPP is ready to Use.
Read More: Different Types of PHP Syntax
I hope you get a complete idea of how to install XAMPP on your Windows 10 local machine. Once the XAMPP installation is done, as a result, you can start and stop each module by using the XAMPP Control Panel.