- Download & extract openssl-1.0.1h
cd /tmp
wget http://www.openssl.org/source/openssl-1.0.1h.tar.gz
tar -xzvf openssl-1.0.1h.tar.gz
cd openssl-1.0.1h
- Configure OpenSSL
./config --openssldir=/usr/local/openssl-1.0.1 shared zlib-dynamic
- Make and install OpenSSL (without docs 'install_sw')
make
sudo make install_sw
- Install Ruby Plesk extension
https://support.plesk.com/hc/en-us/articles/115000180213
- Configure Ruby
mkdir -p "$(rbenv root)"/plugins
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ru
apt install autoconf bison build-essential libyaml-dev libreadline6-dev zlib1g zlib1g-dev
- Install Ruby
RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/openssl-1.0.1 /root/.rbenv/plugins/ru/bin/ruby-build 2.1.6 /opt/plesk/ruby/2.1.6/
- Configure Ruby
curl -fsSL curl.haxx.se/ca/cacert.pem -o "$(/opt/plesk/ruby/2.1.6/bin/ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE')"
/opt/plesk/ruby/2.1.6/bin/gem install bundler -v '< 2'
plesk sbin rubymng register 2.1.6 /opt/plesk/ruby/2.1.6