There are a few factors to keep in mind when building a greenhouse near a fence: The barrier surrounding the greenhouse should not block too much sunlight. The air vents should not be obstructed by it. Clean, weed and maintain the greenhouse by leaving at least a meter of space on each side.