CanDirgen for Flarum 1.x I recommend PHP 8.3, when Flarum 2.x releases in the coming months, then PHP 8.5.
It should be noted that PHP 8.3 and later on Flarum 1.x do require PHP Warnings disabled in your php.ini, due to some older upstream deps, but the code does run just fine.
Apache without LiteSpeed is absolutely fine, I run many Flarum based communities like this.
MariaDB 11.8 I have not used personally yet, I don't think there's any issue. I can tell you that Marida DB 10.11 works just fine.