How to Install and Set Up XAMPP on Windows
The XAMPP program is one of the easiest and most popular tools used to create a local server (Localhost) on your device, allowing you to run PHP applications and MySQL databases without needing a real server. Here are the installation and setup steps:
Download XAMPP
- Open the official website: https://www.apachefriends.org
- Download the version for Windows.
Install XAMPP
- Open the installer file after downloading.
- If a UAC warning appears, click Yes.
- Select the required components: Apache, MySQL, PHP, phpMyAdmin.
- Leave the installation path as it is:
C:\xampp. - Click Install and wait until the installation finishes.
Run the Local Server
- Open XAMPP Control Panel.
- Click Start for both Apache and MySQL.
- If they turn green, that means they are running successfully.
Test XAMPP
Open your browser and type:
http://localhost/
If the XAMPP welcome page appears, everything is working correctly.
Open phpMyAdmin to Manage Databases
http://localhost/phpmyadmin/
Run Your Project Files
Place your project files inside the folder:
C:\xampp\htdocs\
Then open your project through the browser:
http://localhost/your-project-name