First of all, a halal way for buying house is that you should borrow interest free money from one or several persons and buy the house. And gradually keep on paying the debt according to your capacity. If it is difficult, as no one is ready to give you interest free loan then you may buy the house through the bank in a way that you choose the house you intend to buy and ask the bank to buy it. Having bought the house, the bank may include the extra amount in the original price of house as per their wish, i.e. what might have been interest, the bank may include the same extra amount (interest) in the original value of the house. Now you can purchase the house on total price and you can keep on paying it in instalments. In this way, you will be safe from taking loan and paying interest.
Allah (Subhana Wa Ta’ala) knows Best
Darul Uloom Deoband