I was trying to reproduce today.
$ apt-get install apache2 php7 mysql-server
$ service mysql status
$ service apache2 status
mysql and apache running fine, no crash in my retry.
It seems that does not trigger for me.
Is that for you 100% reproducable e.g. still on restarting services or was that something that happened only once?
Also you said you "just installed", so did your steps towards the issue match the ones I described above?