Skip to content

Instantly share code, notes, and snippets.

@edmondscommerce
Created March 2, 2016 09:55
Show Gist options
  • Save edmondscommerce/ac703a0f0184e2881474 to your computer and use it in GitHub Desktop.
Save edmondscommerce/ac703a0f0184e2881474 to your computer and use it in GitHub Desktop.
Paypal TLS upgrade fix PHP on CentOS 6 and RHEL 6 without PHP code changes
#!/bin/sh
rpm -Uvh --force --nodeps --replacepkgs https://copr-be.cloud.fedoraproject.org/results/mmckinst/curl-el6/epel-6-x86_64/00143637-curl/curl-7.19.7-460.el6.x86_64.rpm
rpm -Uvh --force --nodeps --replacepkgs https://copr-be.cloud.fedoraproject.org/results/mmckinst/curl-el6/epel-6-x86_64/00143637-curl/libcurl-7.19.7-460.el6.x86_64.rpm
rpm -Uvh --force --nodeps --replacepkgs https://copr-be.cloud.fedoraproject.org/results/mmckinst/curl-el6/epel-6-x86_64/00143637-curl/libcurl-devel-7.19.7-460.el6.x86_64.rpm
php -r '$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://tlstest.paypal.com/"); var_dump(curl_exec($ch));'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment