It's not related to use mysql or mariadb but php (version and or their modules) and or apache module (like mod-pagespeed compatibility).
You can try disable opcache with rename their .ini to .nonini. The same way for disable mod-pagespeed where rename their .conf to .nonconf inside /etc/httpd/conf.d. Restart web after rename.