Make sure they face the right way (south for Northern hemisphere), and match the angle with your latitude. If you have a pitched roof thats +-10 deg in the correct angle, just lay them flat on the roof.
Edit: forgot to add, a while back there was an article here about a company that proved it was viable to lay the panels flat on the ground for massive solar farm installations. The savings from less installation labour and materials went to installing more panels. And they still came out ahead. Solar is getting cheap enough that the math gets weird. Your answer is almost always "just add more panels" unless you are seriously space constrained.