Geothermal plants can be safely situated near a volcano, says Dr. Roland Horne, Thomas Davies Barrow Professor in the School of Earth Sciences and Senior Fellow at the Precourt Institute for Energy at Standord University.
You can read the outstanding article from Stanford University titled Geothermal at the foot of Kilauea on this and on the recent volcano eruption of Mt. Kilauea in Hawaii at https://earth.stanford.edu/news/geothermal-foot-kilauea?linkId=52195066.
In this article, Dr. Roland Horne discusses geothermal energy in the face of natural hazards and a way to tap the earth’s heat far from volcanoes in the future.
I highly recommend you read the article that I mention above. In this article you can also watch the awesome lava flow from a fissure of Mt. Kilauea on May 19, 2018 and learn about Stanford University’s School of Earth, Energy & Environmental Sciences.