ejabberdctl does not work from PHP

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 12:13:34

问题


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.

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' **

Server Details :

Ejabberd Version : 2.1.2
OS : Ubuntu 9.10 x64


回答1:


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).



来源:https://stackoverflow.com/questions/2424374/ejabberdctl-does-not-work-from-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!