Created
April 28, 2023 12:11
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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