PHP Install


What Is XAMPP?

XAMPP stands for:

 

  • X (Cross-platform)
  • Apache (Web server)
  • MySQL/MariaDB (Database)
  • PHP (Scripting language)
  • Perl

Developers can use this all-in-one package to easily create PHP websites and applications on their local machines.

 

php-xampp


Step-by-Step: Installing PHP Using XAMPP

Step 1: Download XAMPP

  • Go to the official site: https://www.apachefriends.org
  • Download XAMPP for your operating system (Windows/macOS/Linux)
  • Select a version that includes your preferred PHP release such as PHP 8.x

Step 2: Install XAMPP

  • Run the downloaded installer file
  • Follow the installation wizard
  • Select components: During installation select Apache and PHP components and MySQL if necessary.
  • Choose your install directory (e.g., C:\xampp)
  • Complete installation

Step 3: Start Apache (and MySQL if needed) Launch XAMPP Control Panel

php-xampp control panel

  • Launch XAMPP Control Panel
  • Click Start next to: Apache (starts the web server) and MySQL (if you're using a database)

 

notepad

A green Apache icon indicates that the server is operational.


Step 4: Test PHP Installation

  • Go to the XAMPP installation folder: Example: C:\xampp\htdocs (this is your web root directory)
  • Create a new file named test.php
  • Add the following code:
 <?php
phpinfo();
?>

 

  • Open a browser and go to:
http://localhost/test.php 

 

notepad

You should see the PHP configuration page, which confirms PHP is working.


Folder Purpose
htdocs/ Web root (place your PHP files here)
xampp/ XAMPP system files and tools
php/ Contains PHP binaries and configs
mysql/ Contains MySQL/MariaDB database



OnlineTpoint is a website that is meant to offer basic knowledge, practice and learning materials. Though all the examples have been tested and verified, we cannot ensure the correctness or completeness of all the information on our website. All contents published on this website are subject to copyright and are owned by OnlineTpoint. By using this website, you agree that you have read and understood our Terms of Use, Cookie Policy and Privacy Policy.