SELinux config for Django, Apache, MariaDB, Fedora38 stack

For starters, your sealert log gives you some specific suggestions as to what to do.

Both the alert and ausearch output implies that your configuration is trying to run php - if that’s not desired, you probably want to remove that from your configuration.

Yes, SELinux is a pain. But it all can be made to work. (Fortunately for me, I stopped working in a RedHat environment about 11 years ago now.) Get rid of everything php-related if you don’t need it, and work through the messages as they appear.