Normally, I’m a staunch defender of unsupported Discourse installations because I think it’s fun and educational if you can wrap your head around the concepts that are involved, but…

This isn’t going to work. For starters, your Ruby and Rails are both ancient. I have no idea what distro that server is running apart from cPanel, but with software that old and that badly maintained, installing Discourse in any way other than the supported method will be a nightmare.