Moodle
Moodle copied to clipboard
Enabling Maria DB
Whenever i connect a moodle server to AzureDatabase for MariaDB, the installation will be success but the page cannot be loaded due to DB connection failed.
[rgardler EDIT] See comment below. TL;DR MariaDB is not supported in the template, but maybe it should
sudo setsebool -P httpd_can_network_connect_db on
After the all the moodle installation done fix the issue
Thank you very much for following up on this issue. MariaDB is not supported by this template but perhaps it should be. It should be a reasonably drop in replacement and your pointer on how to fix the issue is very useful.
I'm going to change the title of this and make it a feature request for MariaDB. We will evaluate whether providing this as part of the template, but will happily accept PRs for the template.
This is something we'll be taking a look at and will likely arrive after we adding Flexible Server support in the template. Flexible server is in public preview right now and not only is it more performant but offers Barracuda file-format support which most recent versions of Moodle require. Keeping it open for now.