Easy Way – Use XAMPP Windows User

Step-by-step:

  1. Download XAMPP
    Go to the official website: XAMPP Installers and Downloads for Apache Friends
  2. Install XAMPP
    Run the installer and follow the setup steps. Select components:
  • Apache :white_check_mark:
  • PHP :white_check_mark:
  • phpMyAdmin :white_check_mark:
  • (You can skip FileZilla, Mercury, Tomcat unless needed)
  1. Start XAMPP Control Panel
    After installation, open XAMPP Control Panel. Start:
  • Apache (runs PHP)
  • MySQL (for database, if needed)
  1. 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.