I try to set up the left and right margins to 1 inch, top and bottom margins to 0.5 inch. The following is my code:
% Setup the margin
\usepackage[centering, margin={1in, 0.5in}, includeheadfoot]{geometry}
\setlength{\headheight}{0.6in}
\setlength{\headsep}{25pt}
\setlength{\topmargin}{0pt}
\setlength{\footskip}{25pt}
\setlength{\marginparsep}{11pt}
But I don't know why the result doesn't show me the correct page setup.

As you can see, obviously the bottom margin is 0 and the footer is missing. That's not what I set up. Could anybody tell me what's wrong with my code? and how to fix it? Thank you very much.