I fixed the issue. When I installed WordPress on the parent site, I did not delete all of the pre-existing files. (There was an old website on there that was built by someone else, not through WordPress.)
After deleting all of the pre-existing files in the parent site, the 500 error went away and the sub-domain sites worked properly again.