Search code examples
curloauthpleskpeclphp-5.6

Problems adding cURL to OAuth request engine CENTOS 7


Very similar to Problems adding cURL to OAuth request engine support

Except the solutions listed don't work as this server is CENTOS 7 with Plesk Onyx. The default install of Oauth to php 5.6 is very simple:

/opt/plesk/php/5.6/bin/pecl install oauth-1.2.3
extension=oauth.so (added to php.ini)

But the wrong request engine. phpinfo shot of OAuth I need Curl to be the request engine and not php-streams. Please help, thanks


Solution

  • checking for cURL in default path... cURL not found

    Solved:

    /opt/plesk/php/5.6/bin/pecl uninstall oauth-1.2.3 
    
    yum install libcurl-devel.x86_64
    
    /opt/plesk/php/5.6/bin/pecl install oauth-1.2.3