How to install, start and test XAMPP on Mac OSX

  • google plus

In Brief...

XAMPP is a free distribution package that makes it easy to install Apache Web Server, PHP, PEAR, and MySQL. Before installing XAMPP, you should turn off any other web servers and instances of MySQL you have running on your Mac.

Take our Introduction to PHP Training course for free.

See the Course Outline and Register

Instructions

Installing XAMPP on a Mac

  1. Download XAMPP for Mac OSX - Be sure to select the proper version of PHP. For Webucator classes, any version after 5 will be fine.
  2. Open the downloaded file (the DMG-Image).
  3. Drag and drop the XAMPP folder into your Applications folder.Installing XAMPP on a Mac

Starting XAMPP on OSX

To start XAMPP simply open XAMPP Control (by going to /Applications/XAMPP/XAMPP Control in Finder) and start Apache and MySQL.Starting XAMPP on a Mac

If MySQL Does Not Start

If your MySQL server isn't starting, you may need to set the permissions for it using Terminal with this command:

chmod -R 777 /Applications/XAMPP/xamppfiles/var

Testing your OSX XAMPP Installation

In your web browser, go to http://localhost. You should see the start page of XAMPP:XAMPP Start Page for OSX

And that's it

Happy Mac XAMPPing!

Author: Nat Dunn

Nat Dunn founded Webucator in 2003 to combine his passion for web development with his business expertise and to help companies benefit from both.

Discuss