Introduction
XAMPP is a free and open-source local server solution used to run PHP, MySQL, and Apache on your computer. It allows developers to test and build websites locally before uploading them to a live server. Installing XAMPP is the first step for beginners in PHP web development.
What is XAMPP
XAMPP stands for:
X Apache server
A MariaDB or MySQL database
M PHP scripting language
P Perl programming language
It provides a complete local development environment for web developers.
Objectives
By the end of this training, you will be able to:
Understand what XAMPP is and why it is used
Install XAMPP on your computer
Start and stop Apache and MySQL services
Run PHP files locally
Access phpMyAdmin for database management
Why Use XAMPP
XAMPP is used because:
It creates a local server environment
It is free and easy to install
It supports PHP and MySQL
It allows offline website development
It helps in testing websites before deployment
System Requirements
Before installing XAMPP, ensure your system has:
Windows Linux or macOS operating system
At least 2 GB RAM recommended
Minimum 500 MB free disk space
Stable system performance for running services
Downloading XAMPP
To download XAMPP:
Visit the official Apache Friends website
Choose the correct version for your operating system
Download the installer file
Installing XAMPP on Windows
Follow these steps:
Open the downloaded XAMPP installer
Click Next to start installation
Select components like Apache MySQL PHP and phpMyAdmin
Choose installation folder such as C drive
Click Next and start installation process
Wait until installation is completed
Click Finish to complete setup
XAMPP Control Panel
After installation open XAMPP Control Panel.
It includes:
Apache for running web server
MySQL for database management
Start and Stop buttons for services
Logs to monitor system activity
Starting Apache and MySQL
To run your local server:
Open XAMPP Control Panel
Click Start next to Apache
Click Start next to MySQL
Wait until both turn green
Now your local server is active.
Running Your First PHP File
Steps:
Open XAMPP installation folder
Go to htdocs folder
Create a new folder for your project
Create a file named index.php
Write PHP code inside it
Open browser and type:
localhost yourfoldername
Example PHP File
<?php
echo Hello World
?>
Accessing phpMyAdmin
phpMyAdmin is used for database management.
To open it:
Start Apache and MySQL
Open browser
Type localhost phpmyadmin
Common Errors and Solutions
Apache not starting due to port issue change port number in config
MySQL not starting check if another service is using port 3306
Blank page check file location inside htdocs
Advantages of XAMPP
Easy to install and use
Supports PHP MySQL and Apache
Helps in offline development
Ideal for beginners and professionals
Free and open-source solution
Career Benefits
Learning XAMPP helps in:
PHP development careers
Backend web development
WordPress development
Freelance web projects
Full stack development learning
Final Presentation Topics
Explain in your presentation:
What is XAMPP
Why XAMPP is used
How to install XAMPP
How to run PHP locally
How to use phpMyAdmin
Real world use cases