Run the following commands to install OpenSSL on your server:
mkdir /root/setup && cd /root/setup
wget http://www.openssl.org/source/openssl-0.9.8q.tar.gz
tar -xvzf openssl-0.9.8q.tar.gz
cd openssl-0.9.8q
./config
make
make install
*Be sure you allow all processes to finish gracefully before proceeding.*
Run the following command to verify the installation was successful:
openssl version
This should return the build information for the build you just installed.
Run the following commands to ensure the include files are in the correct place(s):
cd /home/root/openssl/openssl-0.9.8q
cd include/openssl
cp * /usr/include
cp * /usr/local/ssl/include
cp * /usr/local/ssl/include/openssl
Run the following commands to ensure the lib files are in the correct place(s):
cd /home/root/openssl/openssl-0.9.8q
cp lib* /usr/local/ssl/lib/
cp lib* /usr/lib/ ldconfig
You will need to halt the version of OpenSSL your running so WHM doesn’t write over it while compiling Apache. This requires you to exclude it from the yum updates, by altering /etc/yum.conf. The first line of which will read something a long the lines of:
exclude=mod_ssl* httpd* perl mysql* php* spamassassin* kernel* exim* courier* apache*
You need to add OpenSSL to this, which should get it to end up looking more like this:
exclude=mod_ssl* httpd* perl mysql* php* spamassassin* kernel* exim* courier* apache* openssl*
*Do not revert this! If you do, when cPanel runs it’s update, it will overwrite your version of OpenSSL and revert it back to an older instance*
You will then need to rebuild Apache in the normal manor (you can use Easy Apache in WHM or do it manually) using the ‘Apache Update’ link in WHM.
Thanks to Linux.com
Entries (RSS)