简体   繁体   中英

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.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM