To install oauth on your system, you need to perform the following steps with your root user. Be aware that this example is for PHP 5.6, you should install the corresponding packages for your PHP version.

  • Install php-dev extension (using the corresponding PHP version):
  • Run the following command to compile the files:
  • Install oAuth itself (using the corresponding PHP version):
  • In this step, you should now be able to see the module available under /etc/php/5.6/mods-available. 
    • If you do not see oauth.ini, then review previous steps to check if you had installed oAuth for the right version of PHP.
  • Add the module on your php.ini file in order to recognize it:
  • Restart apache:
  • That’s all. If you run a phpinfo(), you should now see oauth section. Just like that: