How to disable Apache and MySQL autostart when PC is turned on?
You should disable them using either systemctl
(if you're using systemd) or update-rc.d
:
systemctl disable apache2 mysql
or
update-rc.d apache2 disable
update-rc.d mysql disable
This may depend on your init system. Try one of these:
chkconfig apache2 off
systemctl disable apache2
insserv -r apache2