简体   繁体   English

在 Xampp 上启用 XML-RPC

[英]Enable XML-RPC on Xampp

I'm working on a project and I need to connect to Odoo via XML-RPC.我正在做一个项目,我需要通过 XML-RPC 连接到 Odoo。 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.文档建议使用 Ripcord 库,为此我需要在我的环境中启用 XML-RPC,但我不知道如何执行此操作。 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我正在为 Mac 开发 XAMPP,PHP 版本是 8.0

Thanks in advance.提前致谢。

You can try to install xmlrpc extension with following commands:您可以尝试使用以下命令安装 xmlrpc 扩展:

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.这就是我在 Ubuntu 上安装它的方式。

Also you can check this if you don't know how to compile extensions on OS X如果你不知道如何在 OS X 上编译扩展,你也可以检查一下

You can try download xmlrpc extension in pecl website and install the compatible dll into your xampp.您可以尝试在 pecl 网站下载 xmlrpc 扩展并将兼容的 dll 安装到您的 xampp 中。

  1. Go to https://pecl.php.net/package/xmlrpc and download the dll Go 到https://pecl.php.net/package/xmlrpc并下载 dll
  2. Copy the.dll file to your xampp/php/ext folder将 .dll 文件复制到您的xampp/php/ext文件夹
  3. Add this text to your php.ini将此文本添加到您的php.ini

extension=php_xmlrpc.dll扩展=php_xmlrpc.dll

  1. Restart apache service重启apache服务
  2. Done完毕

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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