Knowledge Above All.

tech

A Comprehensive Guide: Installing XAMPP on macOS for Web Development

⏱ 2 min read Apr 14, 2026

If you are delving into web development on your Mac, you will need a reliable server solution to get your projects up and running smoothly. XAMPP is a popular choice, offering a bundle of essential tools like Apache, MySQL, PHP, and Perl.

In this article, we will guide you through the process of installing XAMPP on macOS, so you can create, test, and perfect your web applications with ease.

Step 1: 

Download XAMPP Visit the Apache Friends website at https://www.apachefriends.org.

Click on the -XAMPP for macOS- link to access the download page. Choose the latest version of XAMPP for macOS by clicking the download link.

Step 2: 

Install XAMPP Locate the downloaded file in your Downloads folder or the location where you saved it. Double-click on the downloaded XAMPP package (it should be named something like “xampp-osx-... .dmg”). macOS will mount the disk image, and you will see the XAMPP icon. Drag the XAMPP icon to your “Applications” folder to install it.

Step 3: 

Open XAMPP Navigate to your Applications folder and find the XAMPP folder. Open the XAMPP Control application.

Step 4: 

Start the Apache and MySQL Servers In the XAMPP Control application, click the “Start” buttons next to both Apache and MySQL. This action initiates the servers.

Step 5: 

Configure XAMPP To access XAMPP”s dashboard, open your web browser and enter “http://localhost” in the address bar.

You should see the XAMPP welcome page, which confirms that your installation was successful.

Step 6: 

Test Your Installation To ensure everything is working as it should, create a simple PHP file to test your server. Open a text editor and create a new file, then add the following code:

<?php

phpinfo();

?>

Save the file as “info.php” and place it in the “htdocs” folder, which is located in the XAMPP directory (usually : Applications/XAMPP/htdocs).

Open your web browser and enter http://localhostinfo.php You should see a page displaying PHP information. This confirms that XAMPP is up and running.

Congratulations! You have successfully installed XAMPP on your Mac, and your local web server is ready for web development.

Now, you can create and test your web projects without the need for an external hosting service. Enjoy coding and building web applications with ease on your macOS-powered machine.

Author Avatar
Admin

This author prefers to keep an air of mystery ✨

Comments (0)