Apache took port 80 and caused Discourse not to start

Not likely.

You should remove or disable Apache. Something like

apt purge apache2