Auto-Start XAMPP

By default, you have to start XAMPP or its components manually every time you reboot your system. However, you can also configure XAMPP components to start automatically on system boot. Follow the steps below.

  1. Log in to the system as an administrator.

  2. Create a file named org.apachefriends.xampp.plist in the /Library/LaunchDaemons directory. Fill this file with the following content:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
    <plist version="1.0">
  3. Save your changes to the file.

  4. Reboot your system and XAMPP should start automatically.

To start XAMPP immediately without rebooting, use the command below:

sudo launchctl load -w /Library/LaunchDaemons/org.apachefriends.xampp.plist

To revert the changes, delete the org.apachefriends.xampp.plist file.