by Eric H.
Hey Ken! Thanks for responding; you were super helpful and got me thinking. I resolved this with a few changes:
- Start a fresh moodle instance
- I started up Moodle + Maria DB and let it install fully.
- I believe this allowed the creation of that `/bitnami/apache/conf` file you mentioned.
- Do the migrations:
- I entered the Maria container and used 'source' to import the SQL file.
- I used cp to copy files into the directory im using for moodle data (./docker/appdata/moodle and /moodledata)
- Update permissions via `sudo chown daemon:root -R' on the data i moved over from the other server.
- Using `root:root` caused the system to go into that "upgrading database" cycle. Fair enough, I should have done `ls -l` on the folders after they were created to confirm instead of assuming it was the root user.
- This let me log in to the site but started giving me a database error
- Re-migrate the database
- I removed the entire data for the Maria DB, and re-did the entire migration of the SQL
- This did it, I can now log in to my site, and it seems to be working properly!
There might be a smoother way to do this, I'm still learning a lot with docker and Linux, but it's such a relief to make some progress finally! I'll leave this post up for future people having the same problem.