If it's a power cage you can take the safety bars off and deadlift inside it. You can also overhead press on the outside of it, typically.GAF, i'm currently living in small city,where there's only a few gyms.The gym i'm going,which is definitely the best one, has free weights and a squat rack.But i don't have the space to do Deadlifts or OHP.Is there any alternative routine, you'd recommend?
Likewise, if it's a squat rack you can overhead press inside of it with no problem. Just push the bar up where it's racked at. You can deadlift behind/in-front of where you step into the rack, typically.
If either of these options aren't feasible, take a picture of what you're talking about. Deadlifting and pressing should be fine in almost any configuration I'm imagining.