在 Xampp 上启用 XML-RPC [英] Enable XML-RPC on Xampp
问题描述
我正在处理一个项目,我需要通过 XML-RPC 连接到 Odoo.文档建议使用 Ripcord 库,为此我需要在我的环境中启用 XML-RPC,但我不知道如何执行此操作.过去几天我一直在用谷歌搜索,但找不到我能理解的类似设置的答案.
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.
我正在为 Mac 开发 XAMPP,PHP 版本为 8.0
Im working on XAMPP for Mac, and the PHP version is 8.0
提前致谢.
推荐答案
您可以尝试使用以下命令安装xmlrpc扩展:
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
这就是我在 Ubuntu 上安装它的方式.
That's how I installed it on my Ubuntu.
你也可以查看这个 如果你不知道如何在 OS X 上编译扩展
Also you can check this if you don't know how to compile extensions on OS X
这篇关于在 Xampp 上启用 XML-RPC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!