I have tried following ALL tutorials out there on getting PHP OAuth extension installed under the MAMP environment, but can\'t get it to load for some reason.
I am u
Since MAMP 3.0 sources are hard to find but you can download sources from PHP.net, make sure the version match : http://php.net/downloads.php, then follow Ryan instructions.
After upgrading to MAMP 2.0 for PHP 5.2.17 I followed these steps to install the oauth module through pecl
Run configure against the downloaded php. Do not build it.
cd /Applications/MAMP/bin/php/php5.2.17/include/php; ./configure
Remove broken pear config:
mv /Applications/MAMP/bin/php/php5.2.17/conf/pear.conf /Applications/MAMP/bin/php/php5.2.17/conf/pear.conf.bak
Compile oauth
cd /Applications/MAMP/bin/php/php5.2.17/bin; ./pecl install oauth
Update php.ini and add extension=oauth.so This can be done in MAMP under File -> Edit Template -> PHP -> PHP 5.2.17 php.ini
First step is giving us some info on why it isn't working. Make a page with phpinfo(), make sure oauth isn't there.
You're going to want to stop apache and start it again. Then check the error log. If you've added it to your extension directory and set up your php.ini then it should be reporting to the error log regarding why the extension isn't loading.
For MAMP 3:
Download and install OAuth.
sudo pecl install oauth
Then, go to MAMP, and click on File > Edit Template > PHP > PHP 5.x.x php.ini
and add the following line
extension = oauth.so
Make sure to choose the current running php version (or press CMD+4 to edit MAMP's running php.ini file).
Restart MAMP servers.