How lax, or not lax have you been in apply updates to the system outside of the rather outdated (no offense intended) errata packages supplied by E-Smith/Mitel/SME. IE, using Redhat Errata for the 5.1.2 series, by using the RH Errata packages for RH 7.1 since 5.1.2 is based off Redhat 5.1.2?
http://rhn.redhat.com/errataDon't use RH Errata packages for:
Kernel updates
xinetd updates
imapd updates
qmail updates
Everything else should work perfectly, including OpenSSL, Apache, PHP, MySQL, etc.