XAMPP is a popular local development stack on Mac, but it ships with a few quirks. Here's how to fix the three most common issues we see.
Apache won't start: usually a port 80 conflict. Run lsof -i :80 to find the process and either stop it or change Apache's Listen port in httpd.conf to 8080.
phpMyAdmin session errors: clear the tmp directory under your XAMPP install, then verify session.save_path in php.ini points to a writable folder. A quick restart of Apache resolves most cases.
MySQL won't launch: check /Applications/XAMPP/xamppfiles/var/mysql/ for stale .pid or .err files. Removing them, fixing folder permissions (sudo chown -R), and restarting MySQL fixes the launch.
If issues persist after these steps, switching to Docker-based local stacks like DDEV or Lando is often a more reliable long-term path.