Here’s a very handy article at This Hold House on replacing an interior door. They describe how to put a new – as in brand new – door into an existing doorway. I was really searching for advice on putting an old door (but a different old door) into an existing doorway.
Still, most of the info applies. Good pictures and clear descriptions.