Skip to content

Instantly share code, notes, and snippets.

@waitray
waitray / paypalCentos-rhel6Fix.sh
Created March 7, 2017 15:23 — forked from edmondscommerce/paypalCentos-rhel6Fix.sh
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));'