Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
2.4? That's extremely old. Nobody would be using that any more. And that would be a significant downgrade from 2.17. Did you mean 2.40? Also you probably should already be on Amazon Linux 2, or better yet, a completely different distribution.