XAMPP automatically start Apache and MySQL on MacOS startup Change directory. cd /Library/LaunchDaemons Create Apache file for startup.