Install PECL Oauth MAMP OSX 10.8 - php

I am trying to install the PECL Oauth extension on OSX 10.8 with MAMP version 2.1.3. This version of MAMP has PHP 5.4.10 and 5.2.17 with it, I have already added the stuff to the include folder of 5.2.17 and run the ./configure. Although when I go to run
cd /Applications/MAMP/bin/php/php5.2.17/bin; ./pecl install oauth
I get
downloading oauth-1.2.3.tgz ...
Could not download from "http://pecl.php.net/get/oauth-1.2.3.tgz", cannot download "pecl/oauth" (could not open /tmp/pear/install/oauth-1.2.3.tgz for writing)
Error: cannot download "pecl/oauth"
Download failed
install failed
Now I am not 100% sure that MAMP is using the 5.2.17 version of PHP, I have changed it in the apache httpd.conf file and when I look at the phpinfo page in MAMP it shows up as using version 5.2.17 so I do not think this is the issue.

Related

having problem with installing PHP Debug extension in Virtual Studio Code on macOS

I'm trying to install the PHP Debug extension in Virtual Studio Code on macOS Ventura 13.1.
While following the instructions from https://xdebug.org/wizard, I am getting an error "Check for supported PHP versions...configure: error: not supported. Need a PHP version >= 7.2.0 and < 8.2.0 (found 8.2.0)" at step 6: Run ./configure
I have no problems installing PHP and Xdebug when I tried installing via homebrew outside of the VS Code app(followed instructions from https://xdebug.org/docs/install). When I typed php -v in terminal, it shows Xdebug version(3.2) and Zend OPcache v8.2.0.
I have tried copying xdebug.so module file from homebrew php app folder to AMPPS php app folder, configuring php.ini as the step 8 & 9 and reloading the AMPPS Apache web server. It still does not work, and I guess I need to run ./configure -> make to get proper xdebug.so file for AMPPS configuration settings.
UPDATE
I found the solution to use ./configure --with-php-config="path-to-AMPPS-php" but still having the problem of loading the Xdebug extension after reloading the web server.
Is there a way to use Xdebug with AMPPS and Virtual Studio Code together?

I had installed the php trade extension on my macOs Mojave, but I'm not able to use it

I installed php trade extension on my macOS Mojave. But I am not able to use it. I am sure it is installed because when I try to install it again it shows this:
pecl/trader is already installed and is the same as the released
version 0.5.0 install failed
I already add in php.ini this:
extension=trader.so
But, I don't see my trader extension neither on terminal (php -m) nor on phpinfo().
My Php version is - PHP Version 7.2.10 and I'm using XAMPP.
Does anyone know how can I solve this?

installing Mcrypt php extension fails on Ubuntu and Xampp

I installed Xampp on Ubuntu 16 to work with Laravel.
I ran my Laravel code and got this error : Mcrypt PHP extension required.
After that I tried to install Mcrypt on PHP.
I have done these :
sudo apt-get install mcrypt
sudo phpenmod mcrypt
I have also done this : Link
I also restart the all services from Xampp after every change but I still get error on Laravel.
Any idea ?
My PHP version is 7.0.22 and Ubuntu version is 16.04.1 .
Thank you .
Edit 1
I did this and I still see the error.
After trying to many things. I just got rid of this shit by installing both version on my computer.
First I installed php 7.1.19 version.
Secondly I installed php 7.2.15 version
Now I am working perfectly with my project.

Php-intl installation on XAMPP for Mac Lion 10.8

Hi folks i am trying to install intl library on xampp for mac. I have installed php 5.3, so i just copied intl.so file from the php 5.3 location to Xampp bin folder. After that i uncommented extension=intl.so and restarted the server. Still i dont see intl updated in the phpinfo() (Getting error Class Locale not found)
I just ran this in Terminal.
sudo pecl install intl
Then just add
extension=intl.so
to php.ini.
For me this worked (php 7.1, MAMP, macOS Mojave):
Downloaded the intl.so file from https://github.com/skmedia/php-extensions-mamp/blob/master/php-5.4.4/intl.so and copy it to /usr/lib/php/extensions/no-debug-non-zts-20160303

Installing PHP OAuth in MAMP environment

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 using MAMP 1.9 with PHP 5.3.2
The most recent tutorial I was following was: http://lifeofadev.com/2011/03/09/mac-os-x-installing-oauth-so-into-xampp-mamp/
Does anyone else have experience with getting this to work?
Thanks!
Dennis
After upgrading to MAMP 2.0 for PHP 5.2.17 I followed these steps to install the oauth module through pecl
Download MAMP Server components and libraries Specifically you want php-5.2.17.tar.gz
Uncompress php-5.2.17.tar.gz to /Applications/MAMP/bin/php/php5.2.17/include/php
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
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.
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.

Categories