Fatal error: Class 'OAuth' not found in
OAuth is a PECL extension it must be compiled into PHP or compiled as an extension.
- http://us3.php.net/manual/en/oauth.installation.php
- http://pecl.php.net/package/oauth
Most servers will not have it by default since it really is not something everyone would likely use. You can ask your host to either install it or if you have the ability compile it on server if using CGI as I did. If you run phpinfo(); and look for the word OAuth it will show up if you have it, otherwise you don't.
Update: Use https://github.com/Lusitanian/PHPoAuthLib instead of a PECL.
I use hostgator for hosting and was having this problem so if your host also uses cpanel you should be able to do what I did.
Go 1 directory up from the live directory in File Manager where you can see "public_html, www, tmp". (Or click the home folder icon to the left) and in there you should find a php.ini file. edit the file adding extension=oauth.so
to the very end and save it.
Checking phpinfo() after that you should find a section called "OAuth" and everything should work fine.
sudo apt-get update
sudo apt-get install php-oauth
sudo service apache2 restart