Upon the order of sale being made under section 497 of this title, the executor or administrator shall sell the property therein specified upon the terms directed and in the manner herein otherwise provided. Such sale shall be made in the same manner as like property is sold on execution. The court may, if thought best, order the property to be sold on the premises. When the sale is upon credit, the executor or administrator shall take the note of the purchaser for the purchase money, or such part thereof as is not required to be in cash, with a mortgage upon the property to secure the payment thereof.