¿Tienes una pregunta?

Si usted tiene cualquier pregunta, escriba a continuación lo que está buscando!

oAuth extensions / REST – OAuth Consumers Magento


1.-Instalar oAuth extensions para Magento

apt-get install php-pear
apt-get install libpcre3-dev
wget http://www.pecl.php.net/get/oauth-1.2.3.tgz && tar zxvf oauth-1.2.3.tgz
cd oauth-1.2.3
phpize && ./configure -with-php-config=/usr/bin/php-config

2.- Si sale este error:

Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... no
checking for gcc... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

3.- Se debe instalar:

yum install gcc

4.- Luego volver arrancar phpize:

phpize && ./configure -with-php-config=/usr/bin/php-config

5.- Make

make && make install

6.- Luego verás que se ha creado oauth.so en /usr/lib64/php/modules/

7.- Respaldar tu php.ini

cp /etc/php.ini /etc/php.ini.27072013.bak

8.- Agregar extension=oauth.so en php.ini

extension=oauth.so

9.- O si prefieres directo en tu dominio (si trabajas con FastCGI) /var/www/vhosts/yourdomain/etc/php.ini

extension=oauth.so

10.- Restart Apache:

service httpd restart

11.- También puedes agregar en PLESK la «extension» directamente en la configuración del servidor:

extension=oauth.so

Commentarios

commentarios

Deje un comentario

Tu dirección de correo electrónico no será publicada. Los campos requeridos están marcados *

Puedes usar las siguientes etiquetas y atributos HTML <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>