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