Solved it.
You were on the right path, Vijay. At some point the EC2 server must have gone down, and when it came back up, both my apache and mysql services hadn’t restarted. So when I sshed in via terminal, I had to start both of them. And no problems since.
Now I just need to solve setting up hooks so they automatically re-initialize.
Thanks.