Was API mysqli loaded or not loaded, how may I check it up?

As for any extension, you probably need to install it, so for xxx extension

dnf install php-xxx

So for mysqli

dnf install php-mysqli

And check installed extensions from command line

php --modules

And for the web server, you have to restart the php-fpm service

systemctl restart php-fpm