OAuth is not matched by PHP after installation via PECL

I needed to configure Oauth as part of a PHP project that I will be working on.

To do this, I ran;

sudo pecl install oauth 

This completed OK, and I was asked to add extension=oauth.so to my php.ini file, which I made.

Then I restarted Apache and launched

 php -i | grep oauth 

To find out if it matches PHP, it looks like I get this as a result;

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

But when I run the application (CodeIgniter), I get an error message:

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

Is there an important step I'm skipping?

+5
source share
1 answer

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

run phpinfo () in your application ... check for oauth there and the downloaded php.ini files.

+2
source

Source: https://habr.com/ru/post/1205314/


All Articles