Ok, you've 'been ask to' suggest there is/was another person who admin'd the moodle and or server before you. That person(s) still around?
It is/was possible that person(s) actually deleted core modules in Moodle rather than just hiding them.
check: /admin/plugins.php
as well as additional plugins: /admin/plugins.php?updatesonly=0&contribonly=1
and
Manage Activities admin/modules.php
The number you see in chart for above link is the number of modules used in any course and clicking number performs a search of courses and should show a listing of those courses.
Googling for "Config table does not contain version moodle" hits a bunch ... here's one hit:
https://moodle.org/mod/forum/discuss.php?d=199501
which is now locked and am not sure what's there applies!
There is an admin tool ... admin/tool/xmldb/
Home -> Site administration -> Development -> XMLDB editor
In the tabbed links in above tool, there is a link to 'Check Indexes".
For every table listed there are also various links:
[Create] | [Load] | [Edit] | [Save] | [Doc] | [XML] | [Revert] | [Unload] | [Delete] |
It's been years, but do re-call using this tool to rebuild a missing table and thus it's index once - got table back with no data. Have no idea what it will do in your case!
One messed up server ... they usually don't get in this condition cept in case where there was really 0 admin/maintenance, etc. Just installing Bitnami is kinda an indication of that admin person's desire to do none of that! (wishful thinking).
Can you backup courses from command line and save those to a directory outside of moodledata/filedir/
Can/could you install a CLI only tool for Moodle called moosh?
You might be looking at rebuilding via course restores to a fresh moodle.
'SoS', Ken