We present how to set up VLEs to accommodate mathematics learning. We concentrate on the popular open source Moodle platform and introduce input filters to conveniently write and display mathematical formulas. Moreover, we present techniques for doing interactive math questions in Moodle. Presentation in the JTEL Summer School, 2009/06/05, Slovakia. Funded by Funded by http://www.jem-thematic.net.