To install this extension on PHP 5.X, run the following command as your server’s root user:
1 |
sudo apt-get install gcc make autoconf libc-dev pkg-config |
Then install the proper version for PHP 5.X
1 |
sudo pecl install oauth-1.2.3 |
Once it finishes, Oauth will ask you to add the extension to your php.ini file
1 |
echo "extension=oauth.so" >> /etc/php5/apache2/php.ini |
Restart your apache server
1 |
service apache2 restart |
And then create a php file with a phpinfo() and you will see Oauth 1.2.3 installed on your web server.