Personally I would use Raspbian, Raspberry Pi OS (Buster), and install your php / web / database server piece by piece. I'm sure there are plenty of tutorials to find for it.
LibreELEC did have such a "LAMP" addon, but so far there is no RPI 4 version (yet) available.
Its author/developer left the LibreELEC community a couple of months ago.