This is useful when you’re running a local LAMP server on your computer, but you don’t want it to run automatically every time you turn your computer on. This will prevent Apache from starting automatically every time your computer boots up. Doing this will keep your computer a little bit cooler.
sudo systemctl disable apache2 && sudo systemctl stop apache2
Start Apache Manually
sudo /etc/init.d/apache2 restart
You’ll also want to do the same for MySQL.