Reputation: 23
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
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
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
Reputation: 583
You can try download xmlrpc extension in pecl website and install the compatible dll into your xampp.
extension=php_xmlrpc.dll
Upvotes: 2
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