It can be a pain. I start with bolt out, and floor plate open for easier access. My steps-
Hold barreled action in left hand, upside down.
Insert mag "liner"
Put bottom metal in place
If it hangs up (usually at rear, where "liner" may be open), gently wiggle liner into alignment.
Once it's in, insert stock screws.
Flip over, insert bolt, have fun.