Keep your host free from lingering services and mismatched versions. Run your dev stack in isolation and rebuild it when needed.
Stop Googling. The answer is staring you right in the face—you just have to read it.