William McKinley served as president.
William McKinley . McKinley was the last president to have served in the American Civil War , and the only one to have started the war as an enlisted soldier , beginning as a private in the Union Army and ending as a brevet major .