Download XAMPP
Click the button below to download XAMPP for Windows:
Download XAMPP for WindowsIf you're on Mac or Linux, visit the official XAMPP Website.
How to Install XAMPP
- Download the installer from the link above.
- Run the installer as Administrator.
- Choose components (keep default if unsure).
- Select installation directory (default is
C:\xampp
). - Finish the setup and launch XAMPP Control Panel.
Starting Your Local Server
- Open XAMPP Control Panel.
- Click Start on both Apache and MySQL.
- Place your PHP files inside:
C:\xampp\htdocs\
- Access your project via browser:
http://localhost/yourfolder
Test Your Installation
Create a file named test.php
inside htdocs
with the following content:
<?php
phpinfo();
?>
Then visit: http://localhost/test.php
in your browser.
❌ Don'ts (Common Mistakes to Avoid)
- Don't install XAMPP inside
C:\Program Files
– it can cause permission issues. - Don't forget to run the installer as Administrator.
- Don't rename or delete files in
htdocs
that you didn't create. - Don't run Skype/Teams on port 80 – it may conflict with Apache.
- Don't shut down XAMPP using Task Manager – use the Control Panel.
- Don't access
localhost
without starting Apache first.