You have to ask yourself where do coal fired power plants come from? Do they just pop-up out of the ground? No, there is a huge amount of carbon burned to produce create the physical plant that is the source of electricity and my guess is the amount of carbon burned to make a solar panel is much less than the amount of build a coal fired plant.
And then you have to consider the amount of carbon produced over the lifetime of the plant in the actual production of electricity. With any other system (oil, coal, natural gas, diesel, propane) it's a huge amount of carbon to produce the fuel, transport the fuel, and then to finally burn the fuel!! With a solar pane it's zero!! Nada !! Zip!!! Zilch!!!! What could be greener than that! Of course if you want to have electricity at night you have to buy batteries so that is some carbon burned on an ongoing basis to make and transport the batteries, but still a tiny fraction of any other electircity generating system.
The real solution is conservation, but anybody who has lived off-grid with solar knows that conservation is all important in our lives. You have a limited amount of electricty and even that can disappear with bad weather so learning to use very little is the key to off-grid life.
Solar is very green and it tremendously encourages conservation.
Bob