• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Curl Request engine for PHP OAuth Extension

jlee2027

New Pleskian
Centos 7. Install commands:

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

Quite easy to install, but uses phpstreams as the Request Engine. How can I change this to the Curl request engine? On Centos 6.7 there was a fix for this, using apt-get, but I can't find it for Centos 7.


upload_2017-5-12_19-41-48.png
 
opt/plesk/php/5.6/bin/pecl install oauth-1.2.3
extension=oauth.so (added to php.ini)

Quite easy to install, but uses phpstreams as the Request Engine. How can I change this to the Curl request engine? On Centos 6.7 there was a fix for this, using apt-get, but I can't find it for Centos 7.

upload_2017-5-12_19-41-48-png.12771
 
When you run

/opt/plesk/php/5.6/bin/pecl install oauth-1.2.3

make sure that you have no in output line like:

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

Install all curl libraries with

# yum install curl-devel

and check in pecl output line like:

checking for cURL in default path... found in /usr

Oauth module should be compiled with curl request engine in this case.
 
Back
Top