- 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.1 provided by Plesk. For other PHP versions, replace "7.1" 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 an OAuth installation:
on CentOS/RHEL-based distributions:
# yum install plesk-php71-devel make gcc php-pear
on Debian/Ubuntu-based distributions:
# apt-get install plesk-php71-dev gcc make autoconf libc-dev pkg-config
# /opt/plesk/php/7.1/bin/pecl install oauth
Enable the extension:
# echo extension=oauth.so > /opt/plesk/php/7.1/etc/php.d/oauth.ini
Verify that OAuth is now enabled:
# /opt/plesk/php/7.1/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.1 any application.