From the excellent digital archive of the Archivo Fotográfico Courret:
The photo is from 1894, and of Julio C. Bernales del Real and his comrades at arms in the Peruvian Military. Bernales served throughout the country, and also as part of his country's legations to Greece and Bolivia in the late 19th century. I'm personally a fan of the uniform mustaches. And, what's with the one guy at the end of the row with his chair backwards?