PHP is still running the old curl
Code: Select all
/opt/curlssl/bin/curl -V
curl 7.38.0 (x86_64-unknown-linux-gnu) libcurl/7.38.0 OpenSSL/1.0.0 zlib/1.2.3 libidn/1.18 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz
the new curl is located here
Code: Select all
/usr/bin/curl -V
Can I simply replace the curl and curl-config files in /opt/curlssl/bin/curl with the new updated ones?curl 7.55.1 (x86_64-redhat-linux-gnu) libcurl/7.55.1 OpenSSL/1.0.1e zlib/1.2.3 c-ares/1.13.0 libssh2/1.8.0 nghttp2/1.6.0 Release-Date: 2017-08-14 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy
phpinfo() still outputs the old curl and I can't find anyway of pointing php to look at the new directory so backing up the original curl files and replacing with the new ones is all I can think of but it's a production server so I don't want to risk messing anything up.
I've also read that PHP needs to be recompiled with the new curl directory but I'm unsure on how to do this?
Any advice is greatly appreciated.
Thanks