Earth is the center of God's creation and does not move, and the heavenly bodies are arranged around the earth according to God's will. This is clearly laid out in the inerrant word of God:

Genesis 1:14-19
And God said, Let there be lights in the firmament of the heaven to divide the day from the night; and let them be for signs, and for seasons, and for days, and years:
And let them be for lights in the firmament of the heaven to give light upon the earth: and it was so.
And God made two great lights; the greater light to rule the day, and the lesser light to rule the night: [he made] the stars also.
And God set them in the firmament of the heaven to give light upon the earth,
And to rule over the day and over the night, and to divide the light from the darkness: and God saw that [it was] good.
And the evening and the morning were the fourth day.

Ecclesiastes 1:4 and 5
One generation goeth, and another generation cometh; but the earth abideth for ever.
The sun also ariseth, and the sun goeth down, and hasteth to its place where it ariseth.

Psalms 92
He has made the world firm, not to be moved.

Psalms 103
You fixed the earth upon its foundation, not to be moved forever.