Europe and the EU in particular should control their outer borders. Some entry but regulated entry should be allowed. EU. countries should act in concert and if necessary more northerly countries should support their southern neighbours with extra police or personnel or whatever. If this would ever happen is moot as the EU acts as a multiheaded monster pulling in different directions.
Agreements should be signed with countries like Turkey, Lebanon, Jordan that already have millions of refugees to try and keep these people in the middle East. These countries need material support like food, tents, clothing for these people and Europe should support this. If suitable refugee camps can be maintained in these countries, some of the excess washing up in Europe should be returned there.
Imposing a military solution on the Hornets nests of Syria and Iraq by the West won't happen. They will splutter on, on their own until they may eventually run out of steam, similar to the Lebanese civil war of over 2 decades ago.
<><><><><><><><><><><><><><><><><><><><><>
Shalom/salaam.
10,000 years of Middle Eastern civilisation and the place is not at peace but rather in pieces.