Solid shaft planetary gearbox with mounted flange