- Plesk for Linux
How to install the OAuth PHP extension?
Note: In the example below, the OAuth PHP extension is installed for PHP version 7.2 provided by Plesk. For other PHP versions, replace "7.2" with a required PHP version (for example, "5.6" or "7.0"). Use this guide to install additional PHP versions.
Connect to a Plesk server via SSH.
Install components required for OAuth installation:
on CentOS/RHEL-based distributions:
# yum install plesk-php72-devel make gcc php-pear pcre-devel
on Debian/Ubuntu-based distributions:
Note: On Debian/Ubuntu-based distributions, the apt-transport-https package may be required. See the solution in this KB article.
# apt-get install plesk-php72-dev gcc make autoconf libc-dev pkg-config
# /opt/plesk/php/7.2/bin/pecl install oauth
Enable the extension:
# echo extension=oauth.so > /opt/plesk/php/7.2/etc/php.d/oauth.ini
Verify that OAuth is now enabled:
# /opt/plesk/php/7.2/bin/php -m | grep OAuth
Refresh information about PHP handlers in Plesk:
# plesk bin php_handler --reread
This extension will also appear in Plesk at Tools & Settings > PHP Settings > 7.2 any application.