Cannot properly align textures
I'm sure that this isn't the simplest answer but you could split your cube in two pieces and make one piece green and the other brown. Than you could join (in the menu, object, join) the two pieces to one cube again.
(You can assign different colors to objects or to a part of an object in edit mode)