PHP Setup & Installation
Option 1: XAMPP (Cross-Platform)
XAMPP includes PHP, Apache, MySQL, and phpMyAdmin.
- Download from apachefriends.org
- Install and launch the control panel
- Start Apache and MySQL services
- Place your PHP files in
htdocs/folder
Option 2: WAMP (Windows)
Windows-specific bundle with Apache, MySQL, and PHP.
Option 3: LAMP (Linux)
sudo apt update
sudo apt install php mysql-server apache2
Verify Installation
Create info.php:
<?php phpinfo(); ?>
Access http://localhost/info.php to see your PHP configuration.