Tips & Tricks

How to Fix XAMPP Issues on Mac

Common XAMPP problems on Mac — Apache startup failures, phpMyAdmin session errors, and MySQL launch issues — solved.

InviSofts EngineeringFeb 18, 20265 min
How to Fix XAMPP Issues on Mac

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.

Free consultation

Ready to grow with modern technology?

Tell us about your goals — our IT specialists will share a roadmap and proposal within one business day.