title: Prestashop installation homestead guide
body: <p>So I had trouble while installing Prestashop 1.7 correctly and thought I would post my own guide to install it with Homestead (vagrant, virtualbox):</p>
  
  <p>There we go:</p>
  
  <p>Download prestashop</p>
  
  <p>Have vagrant and homestead installed</p>
  
  <p>Cd into your homestead folder and run vagrant - <code>vagrant up</code></p>
  
  <p>Extract ONLY THE FIRST zip in "...code\prestashop" folder</p>
  
  <p>Configure homestead.yaml file by adding:</p>
  
  <pre><code>sites:
      - map: prestashop.test
        to: /home/vagrant/code/prestashop
        php: "7.0"
  
  databases:
      - prestashop
  </code></pre>
  
  <p>add     <code>192.168.10.10   prestashop.test</code> to your hosts file</p>
  
  <p>run <code>vagrant provision</code></p>
  
  <p>Open "prestashop.test" (or whatever other name you put in the homestead.yaml file) in browser</p>
  
  <p>Proceed with prestashop installation</p>
  
  <p>Comment out (_install) or delete the install folder (otherwise you will get an error when trying to open prestashop in the browser)</p>
  
  <pre><code>vagrant ssh
  </code></pre>
  
  <p>In vagrant ssh <code>cd /etc/nginx/sites-available</code> and run <code>ls</code> to see if prestashop is present</p>
  
  <pre><code>sudo nano prestashop.test
  </code></pre>
  
  <p>Add this between root and index and change the admin name on BOTH lines to your generated unique one:</p>
  
  <pre><code>location /admin/ {
  if (!-e $request_filename) {
  rewrite ^/.*$ /admin/index.php last;
  }
  }
  </code></pre>
  
  <p>then <code>sudo /etc/init.d/nginx reload</code></p>
  
  <p>Open prestashop.test/admin() (in the brackets put your unique admin name (without the brackets) and voilà!</p>