Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OAuth not being picked up by PHP after installing it via PECL

I needed to set up Oauth as part of a PHP project I will be working on.

To do this I ran;

sudo pecl install oauth

This completed OK and it instructed me to add extension=oauth.so to my php.ini file, which I did.

I then restarted Apache and ran

php -i | grep oauth

To see if it was being picked up by PHP, it appears to be as I get this as the result;

source version => $Id: oauth.c 325799 2012-05-24 21:07:51Z jawed $

But when I run the (CodeIgniter) app I get the error;

Fatal error: Class 'Oauth' not found in...

Is there a vital step I am missing out?

like image 541
Toby Avatar asked Oct 31 '22 15:10

Toby


1 Answers

Putting the comment from @Andy Jones as answer here to remove this question from unanswered questions list:

run phpinfo() within your app... check for oauth there and the loaded php.ini files.

like image 135
Anshu Prateek Avatar answered Nov 15 '22 06:11

Anshu Prateek