DIY solar installation is legal in most areas, provided you meet building codes, get permits, and pass inspections for electrical and structural safety.