Steps
  1. add the files somewhere, like /var/www/your_site
  2. add a url in /etc/hosts
  3. add a .conf file in /etc/apache2/sites-available
    1. make sure to add the FPM settings and modify the PHP version to the required one
    2. make the vhost point to the proper folder and files using the , DocumentRoot and DirectoryIndex
  4. enable it with sudo a2ensite
  5. restart apache
  6. check file permissions, consider 755
  7. link your database
    1. in drupal, you have to edit web/sites//settings.php or web/sites//settings.local.php
    2. in prestashop, you have to edit app/config/parameters.php