title: how to run apache commands for Magento in xampp on localhost?
body: <p>Magento 2 installation requires running lot of commands. I'm trying to install magento 2 in localhost on xampp server. And </p>
  
  <p><a href="http://devdocs.magento.com/guides/v2.0/install-gde/prereq/apache.html#apache-rewrites2.4" rel="nofollow">http://devdocs.magento.com/guides/v2.0/install-gde/prereq/apache.html#apache-rewrites2.4</a></p>
  
  <p>requires me to run these commands<br>
  1 . " apache2 -v " </p>
  
  <ol start="2">
  <li><p>" apt-get -y install apache2 " </p></li>
  <li><p>" a2enmod rewrite " etc., . </p></li>
  </ol>
  
  <p>I tired running these commands in composer in root folder of magento 2. But I get error like this - 'apt-get' is not recognized as an internal or an external command , operable program or batch file.</p>
  
  <p>Can some one tell me what am I doing wrong?</p>