Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lao-tseu-is-alive/fdeef49e7f9db80daea81804ca9fdd6b to your computer and use it in GitHub Desktop.
Save lao-tseu-is-alive/fdeef49e7f9db80daea81804ca9fdd6b to your computer and use it in GitHub Desktop.
HOWTO upgrade curl on ubuntu 22.4 LTR to get rid of : SSL Library Error: error:0A000126:SSL routines::unexpected eof while reading
cd /opt
mkdir curl_local
cd curl_local/
wget https://curl.se/download/curl-8.0.1.tar.gz
tar xvfz curl-8.0.1.tar.gz
apt-get install libssl-dev autoconf libtool make build-essential libnghttp2-dev libssl-dev
cd curl-8.0.1/
./buildconf
./configure --with-gnutls --with-openssl --with-kerberos --with-nghttp2
make
ldd /usr/lib/php/20210902/curl.so
make install
ldconfig
ldd /usr/lib/php/20210902/curl.so
systemctl restart nginx.service
systemctl restart php8.1-fpm.service
### more information on bug:
https://stackoverflow.com/questions/72627218/openssl-error-messages-error0a000126ssl-routinesunexpected-eof-while-readin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment