Installing a solar panel system on your roof requires a sound structure with a roof covering that is less than 3 years old. It will require you to remove all trees or obstructions that would shade your roof during the day. There are energy savings lost during the summer months by exposing your house to full sun. You would be responsible for the maintenance of the system, as well as damage that could come from wind and hail storms.
The presence of the rooftop solar is a problem when shingles must be replaced. There could also be considerable cost to upgrade your electrical system to handle the power generated by the solar panels. Building codes and neighborhood covenants may also pose problems. There could also be an issue with increased property taxes from the value added to your property. It is questionable whether potential buyers view the solar installation as a positive or negative in the event you choose to sell your home.
Owning rooftop solar requires an upfront cash payment as well as a long-term commitment. While leasing enables you to avoid the upfront cash payment, it is still a long-term commitment and may require certain credit approvals.