cd /usr/src
wget [url]http://www.openssl.org/source/openssl-0.9.7e.tar.gz[/url]
tar -xvzf openssl-0.9.7e.tar.gz
cd openssl-0.9.7e/
./config --prefix=/usr no-threads shared
make
make test
make install
echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
ldconfig -v
rm -f /lib/libssl.so.4
ln -s /usr/local/ssl/lib/libssl.so.0.9.7 /lib/libssl.so.4
rm -f /usr/lib/libcrypto.so
ln -s /usr/local/ssl/lib/libcrypto.so.0.9.7 /usr/lib/libcrypto.so.0
cd /usr/local/directadmin/customapache
rm -f configure.*
./build clean
./build update
./build all
cd /usr/local/directadmin/custombuild
./build openssl