Stop Apache From Starting Automatically on Boot

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

Notes

You’ll also want to do the same for MySQL.

See more: ,

We've One Response

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]