Federico Milstein
Federico Milstein

Reputation: 23

Enable XML-RPC on Xampp

I'm working on a project and I need to connect to Odoo via XML-RPC. The documentation suggests using Ripcord library, and for this I need to enable XML-RPC on my enviroment, but I've got no clue how to do this. I've been googleing for the last couple of days but couldnt find answers on a similar setting that I could understand.

Im working on XAMPP for Mac, and the PHP version is 8.0

Thanks in advance.

Upvotes: 2

Views: 14101

Answers (4)

gggeek
gggeek

Reputation: 331

A bit of a lateral approach, but: if compiling stuff is hard on your platform, you can install a pure-php library which exposes the exact same API as the xmlrpc extension. Just add phpxmlrpc/polyfill-xmlrpc to your Composer dependencies, and everything should work as expected.

Upvotes: 0

Brett Henning
Brett Henning

Reputation: 16

Might be an old one but xmlrpc has been removed as a default extension in php 8

For windows you can download the extension here

copy and paste the contents into the ext folder of you php version and update the php.ini file by adding this line this line

extension=php_xmlrpc.dll

Don't forget to restart your server

Upvotes: 0

Carl Angelo Nievarez
Carl Angelo Nievarez

Reputation: 583

You can try download xmlrpc extension in pecl website and install the compatible dll into your xampp.

  1. Go to https://pecl.php.net/package/xmlrpc and download the dll
  2. Copy the .dll file to your xampp/php/ext folder
  3. Add this text to your php.ini

extension=php_xmlrpc.dll

  1. Restart apache service
  2. Done

Upvotes: 2

GTsvetanov
GTsvetanov

Reputation: 1300

You can try to install xmlrpc extension with following commands:

git clone https://git.php.net/repository/pecl/networking/xmlrpc.git
export CPPFLAGS=-I/usr/include/libxml2/
cd xmlrpc && phpize && ./configure --with-expat && make && make install
echo "extension=xmlrpc.so" > /etc/php/8.0/mods-available/xmlrpc.ini

That's how I installed it on my Ubuntu.

Also you can check this if you don't know how to compile extensions on OS X

Upvotes: 1

Related Questions