Keep your host free from lingering services and mismatched versions. Run your dev stack in isolation and rebuild it when needed.
It uses some of the oldest tricks in the book.