You asked

Which cheap camera with a 50mm lens suits portraits under 500 euros?

The site's guide says the lens matters more than the body for portraits, so a cheap body with a fast 50mm is the right direction. Two cameras and lenses fit the idea, but none of the combinations fits under 500 euros with the lens included.

The most sensible pairing is the Canon EOS R100 with the Canon RF 50mm f/1.8 STM. The R100 is the cheapest way into Canon's mirrorless system, at 480 € new or 369–374 € used. The RF 50mm is the cheapest fast lens on Canon mirrorless, at 239 € new. Together that comes to roughly 608–613 € used, or 719 € new, so it's over budget. The lens is made for full frame, but it works on the R100's APS-C sensor and gives a tighter, flattering portrait framing. The R100 has no stabilisation, so the lens's lack of it matters less at portrait distances in good light.

On a tighter budget, the Pentax smc DA 50mm f/1.8 is the cheapest fast portrait lens here, at 86–96 € used. It's made for APS-C Pentax K-mount bodies. The Pentax K-500 is a K-mount APS-C DSLR that takes it, but the site doesn't list a price for the K-500, so the total can't be checked against 500 €.

The Olympus OM-D E-M10 Mark III at 369–379 € used is a stabilised, capable body. The site has no 50mm lens for Micro Four Thirds, so you would need to buy a portrait lens separately.

For the wider reasoning, see portraits and your first lenses.

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}.