Step-by-step:
- Download XAMPP
Go to the official website: XAMPP Installers and Downloads for Apache Friends - Install XAMPP
Run the installer and follow the setup steps. Select components:
- Apache
- PHP
- phpMyAdmin
- (You can skip FileZilla, Mercury, Tomcat unless needed)
- Start XAMPP Control Panel
After installation, open XAMPP Control Panel. Start:
- Apache (runs PHP)
- MySQL (for database, if needed)
- Test PHP Installation
- Go to the folder:
C:\xampp\htdocs\
- Create a new file:
test.php
- Add this code:
phpinfo();
?>
Open browser and go to:
http://localhost/test.php
If PHP is working, you’ll see the PHP info page.