Installing the OAuth PHP Extension on CentOS

With Noteworthy's recent switch from XAuth to OAuth, I had to install the PHP OAuth extension on my web server. While this isn't very difficult to do, it's something I think many people will do for the first time as they try to install Noteworthy. So, to that end, here's a quick little run down of how to install the OAuth extension on CentOS 5.

Disclaimer: the notes I'm going to provide worked on my server, a VM running CentOS 5.1 with a mostly plain-vanilla installation of PHP 5.3.3. I make no guarantees that this will work exactly the same way for you on the first attempt. Please be ready to adapt these instructions!

Alright, that out of the way, here's what I had to do:

yum install pecl pecl-devel
pecl install oauth

And then, finally, add the extension to php.ini:

extension=oauth.so

That's all there is to it. Be sure to restart the web server after updating php.ini, and you should now be able to use the OAuth extensions in your PHP-based code.