본문 바로가기
프로그래밍/PHP

Installing OAuth on CentOS 5.4

by o테리o 2011. 4. 25.
I've recently needed to install the OAuth libarary on CentOS for use in creating Twitter applications and using the Linkedin API.

Here's how to do it.

$ yum install curl-devel gcc
$ yum install pcre-devel
$ yum install php-pear

Next, install oauth using pecl

$ pecl install oauth-beta

After oauth installs, you will need to do 1 of the below 2 things

1. If the directory /etc/php.d exists, create a new file oauth.ini inside the folder.
Paste the following in oauth.ini
extension=oauth.so

2. Alternatively, place the following line in /etc/php.ini
extension=oauth.so