Catalyzes the phosphorylation of D-glucose to D-glucose 6-phosphate using ATP as the phosphate donor. Can also phosphorylate 2-deoxyglucose, with lower efficiency. ITP can also serve as a phosphoryl donor. ATP + D-glucose = ADP + D-glucose 6-phosphate + H(+) Mg(2+) is the most effective ion. It can be efficiently replaced with Mn(2+) or Co(2+) and to some extent with Ni(2+). Optimum pH is 7.3. Optimum temperature is 93 degrees Celsius. Homodimer. Belongs to the ROK (NagC/XylR) family.