• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question CURL version problem

henryg

New Pleskian
Server operating system version
7.9.2009
Plesk version and microupdate number
18.0.42
Hi all.
I'm very familiar with Windows through most versions since 3.1 but Linux not so much hence my question about replacing/removing unwanted versions of CURL executable file.

So, I took courage and did this special way of installing a higher version of CURL as described here:
Resolved - How to update cURL on CentOS 7.9.2009 (Core) and Plesk Obsidian 18.0

yum installed a 7.83.0 version under ./usr/bin/

However using the Linux command "find" I realize that I have several executables on my server.
find -not -type d -name curl
./usr/bin/curl
./var/www/vhosts/panel.{mysitename}/usr/bin/curl

./var/www/vhosts/chroot/usr/bin/curl


Both the CURL's under ./var/www/vhosts/... are only of version 7.29.0 and my guess is that whenever my PHP code uses CURL this lower version will be executed.
Could/should I copy the 7.83.0 CURL file replacing the two others?
Any other ideas?

Sincerely Henry
 
Before you do that, check if they have the same dependencies:
ldd /usr/bin/curl should show the same libraries as ldd /var/www/vhosts/chroot/usr/bin/curl.
If /usr/bin/curl needs more libraries than the chrooted ones, those extra libraries might need to be added to the chroot.
Otherwise it should be safe to replace.
 
Thanks for your reply, seems to me that the dependencies are exactly the same. Only the hex numbers differs, maybe a checksum?

ldd /usr/bin/curl
linux-vdso.so.1 => (0x00007fff228fe000)
libcurl.so.4 => /lib64/libcurl.so.4 (0x00007f31b8a95000)
libssl3.so => /lib64/libssl3.so (0x00007f31b8832000)
libsmime3.so => /lib64/libsmime3.so (0x00007f31b860a000)
libnss3.so => /lib64/libnss3.so (0x00007f31b82d1000)
libnssutil3.so => /lib64/libnssutil3.so (0x00007f31b80a1000)
libplds4.so => /lib64/libplds4.so (0x00007f31b7e9d000)
libplc4.so => /lib64/libplc4.so (0x00007f31b7c98000)
libnspr4.so => /lib64/libnspr4.so (0x00007f31b7a5a000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f31b783e000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f31b763a000)
libz.so.1 => /lib64/libz.so.1 (0x00007f31b7424000)
libc.so.6 => /lib64/libc.so.6 (0x00007f31b7056000)
libnghttp2.so.14 => /lib64/libnghttp2.so.14 (0x00007f31b6e2f000)
libssh2.so.1 => /lib64/libssh2.so.1 (0x00007f31b6bf4000)
libpsl.so.0 => /lib64/libpsl.so.0 (0x00007f31b697c000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f31b672f000)
libldap-2.4.so.2 => /lib64/libldap-2.4.so.2 (0x00007f31b64da000)
liblber-2.4.so.2 => /lib64/liblber-2.4.so.2 (0x00007f31b62cb000)
librt.so.1 => /lib64/librt.so.1 (0x00007f31b60c3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f31b8d34000)
libssl.so.10 => /lib64/libssl.so.10 (0x00007f31b5e51000)
libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f31b59ee000)
libicuuc.so.50 => /lib64/libicuuc.so.50 (0x00007f31b5675000)
libicudata.so.50 => /lib64/libicudata.so.50 (0x00007f31b40a2000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f31b3db9000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f31b3b86000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f31b3982000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f31b3772000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f31b356e000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f31b3354000)
libsasl2.so.3 => /lib64/libsasl2.so.3 (0x00007f31b3137000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f31b2e2f000)
libm.so.6 => /lib64/libm.so.6 (0x00007f31b2b2d000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f31b2917000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f31b26f0000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f31b24b9000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f31b2257000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007f31b2054000)


ldd /var/www/vhosts/chroot/usr/bin/curl
linux-vdso.so.1 => (0x00007fff1fb63000)
libcurl.so.4 => /lib64/libcurl.so.4 (0x00007fe06aae6000)
libssl3.so => /lib64/libssl3.so (0x00007fe06a883000)
libsmime3.so => /lib64/libsmime3.so (0x00007fe06a65b000)
libnss3.so => /lib64/libnss3.so (0x00007fe06a322000)
libnssutil3.so => /lib64/libnssutil3.so (0x00007fe06a0f2000)
libplds4.so => /lib64/libplds4.so (0x00007fe069eee000)
libplc4.so => /lib64/libplc4.so (0x00007fe069ce9000)
libnspr4.so => /lib64/libnspr4.so (0x00007fe069aab000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe06988f000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fe06968b000)
libz.so.1 => /lib64/libz.so.1 (0x00007fe069475000)
libc.so.6 => /lib64/libc.so.6 (0x00007fe0690a7000)
libnghttp2.so.14 => /lib64/libnghttp2.so.14 (0x00007fe068e80000)
libssh2.so.1 => /lib64/libssh2.so.1 (0x00007fe068c45000)
libpsl.so.0 => /lib64/libpsl.so.0 (0x00007fe0689cd000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fe068780000)
libldap-2.4.so.2 => /lib64/libldap-2.4.so.2 (0x00007fe06852b000)
liblber-2.4.so.2 => /lib64/liblber-2.4.so.2 (0x00007fe06831c000)
librt.so.1 => /lib64/librt.so.1 (0x00007fe068114000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe06ad85000)
libssl.so.10 => /lib64/libssl.so.10 (0x00007fe067ea2000)
libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007fe067a3f000)
libicuuc.so.50 => /lib64/libicuuc.so.50 (0x00007fe0676c6000)
libicudata.so.50 => /lib64/libicudata.so.50 (0x00007fe0660f3000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fe065e0a000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fe065bd7000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fe0659d3000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fe0657c3000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fe0655bf000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fe0653a5000)
libsasl2.so.3 => /lib64/libsasl2.so.3 (0x00007fe065188000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fe064e80000)
libm.so.6 => /lib64/libm.so.6 (0x00007fe064b7e000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fe064968000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fe064741000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fe06450a000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fe0642a8000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fe0640a5000)
 
Back
Top