All of this will happen on the server, to which we'll have connected through SSH.

1. Clone repo
2. Run:

composer install
npm install
npm run prod
cp .env.example .env
php artisan key:generate


3. Set up database. The db is on the same server, so we could use 127.0.0.1 as the IP address

4. Run the command to build db schema based on migration(s):

php artisan migrate

5. Import SQL dump or CV if necessary

6. Edit .env file for appropriate settings/values: See article.

7. Folder permissions: See the article. Review error logs as you go.

8. Apache configurations: See the article. Apache will have to be rebooted. Create Media3 ticket for that.