You asked

How far should I stand from my subject and how far behind them should the background be?

The guide doesn't give a set distance in metres. It gives the rules that set the distance: background blur grows with focal length, with getting closer to your subject, and with more space between the subject and the background. Moving your subject away from a wall often does more than buying a faster lens. See Aperture and background blur.

For the first question, the guide's advice is to stand back and zoom in rather than stand close with a wide lens. Longer focal lengths flatter faces because you stand further away, which keeps noses and chins in proportion. Very wide lenses exaggerate whatever is nearest the camera. For headshots on full frame, the guide points to an 85mm f/1.8, and to a 135mm or 70-200mm f/2.8 for tight headshots and strong outdoor blur with room between you and the subject. The 50mm f/1.8 is the cheapest all-round choice, but it stands you closer. See The lenses.

Aperture matters as much as distance. At f/1.4 and wider, the depth of field can be thinner than a face, so with two people at different distances, stop down to f/2.8.

Sensor size changes the framing too. A 50mm on APS-C frames like a 75mm on full frame, so you'll stand further back for the same shot. Full frame gives more background blur at the same f-number, but a fast APS-C lens closes most of that gap for less money. See focal length converter and sensor sizes.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.