Installing a Drupal website on your machine
One of my preferred ways for running Drupal in a local development environment is with a Docker-based solution. There are several available, the most popular being Lando, DDEV, and Docksal. All of these are open source projects and, of course, free. My favorite is Lando, but whichever you choose from this list will undoubtedly serve you well. The main advantage of using these solutions is you can guarantee that your development environment meets the Drupal system's requirements and dependencies, so you don't need to worry about that. These solutions can be set up in a very advanced way, but all of them have premade configurations that speed up the process of setting your environment ready to run Drupal.
There are many ways in which you can install Drupal, but the recommended way is through Composer. Composer is a package management tool for PHP. The process can be a lot more straightforward if you have Composer globally installed...