2 artifacts
Tap to collapse details
Download XAMPP from the official site: https://www.apachefriends.org/download.html.
Run the installer and start Apache and MySQL from the XAMPP Control Panel.
Verify PHP: Create phpinfo.php in htdocs folder with <?php phpinfo(); ?>, access http://localhost/phpinfo.php in browser.
phpinfo.php
htdocs
<?php phpinfo(); ?>
http://localhost/phpinfo.php
Alternatively, for CLI: On Windows add PHP to PATH; Linux sudo apt install php; macOS brew install php. Run php -v.
sudo apt install php
brew install php
php -v
❌ Apache won't start due to port conflict
→Change Apache port in XAMPP config or stop other servers
❌ phpinfo.php shows blank page
→Ensure file saved as .php, not .txt; restart Apache
Tap to expand details
Spin up a personalized “learn PHP” plan you can save, check off, and return to anytime — unlimited on the free trial.
W3Schools
Great Learning
Alison
by Kevin Yank
by Alan Forbes
by Joel Murach
Complete reference and simple tutorials
Step-by-step learning path
Interactive beginner tutorials with exercises
Local server stack with PHP, Apache, MySQL
Free code editor with PHP extensions
Dependency manager for PHP