ejabberdctl不能从PHP工作 [英] ejabberdctl does not work from PHP
问题描述
我试图从PHP文件调用ejabberdctl,但它失败,出现以下错误:
I am trying to call ejabberdctl from a PHP file, but it is failing with the following error :
Failed RPC connection to the node ejabberd@localhost: nodedown
节点正在运行,我已经通过登录服务器。
The node is running, i have checked this by logging into the server.
当php脚本运行这是我看到的错误/opt/ejabberd-2.1.2/logs/ejabberd.log显示:
When the php script is run this is the error i see in /opt/ejabberd-2.1.2/logs/ejabberd.log shows :
=ERROR REPORT==== 2010-03-11 15:08:07 ===
** Connection attempt from disallowed node 'ejabberd-ctl@localhost' **
服务器详细信息:
Ejabberd版本:2.1.2
操作系统:Ubuntu 9.10 x64
Ejabberd Version : 2.1.2
OS : Ubuntu 9.10 x64
推荐答案
这可能是一个cookie问题。
检查运行ejabberd的用户和运行php的用户是否都使用相同的cookie(cookie文件名为.erlang.cookie)。
This is likely to be a cookie problem. Check that the user running ejabberd and the user running php are both using the same cookie (cookie file is named .erlang.cookie).
这篇关于ejabberdctl不能从PHP工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!