Ideally, ground-mounted solar panels should be installed at enough distance to avoid shadows produced by your house. If you install them too close to your house, their electricity output will be reduced by shading.
The ideal location for ground-mounted solar panels is one that doesn’t get any shading, from sunrise to sunset. As long as shadows are avoided, almost any spot on your property can be used for ground-mounted solar panels. However, installing them especially far from your house will increase the wiring distance, making the electrical installation more expensive.