what is the initial admin password ?

i already installed the ejab .. server in a win 2000 server
now i want to admin it with the web interface but i don't know the admin password
what is it ?

also in the intalled directory i can't found the ejabberdctl.exe utility
it works for win or is only a script for unix/linux OS ?

ejabberd_ctl on windows: dirty trick

now i want to admin it with the web interface but i don't know the admin password. what is it ?

web admin

also in the intalled directory i can't found the ejabberdctl.exe utility. it works for win or is only a script for unix/linux OS ?

You are right, there is no access to that utility on the Windows installer. For now you can try this quick and dirty trick:

  1. Copy the 'Start Ejabberd.lnk' shortcut to C:\ and rename it to 'ejabberdctl.lnk'
  2. Edit the properties of that shortcut. On Destination:
    1. Replace 'werl.exe' with 'erl.exe'
    2. Replace '-sname ejabberd' with '-sname ejabberd2'
    3. Remove the rest of the text: '-env EJABBERD_SO_PATH ...'
    4. Add '-s ejabberd_ctl -extra ejabberd@MACHINENAME'. Instead of MACHINENAME you must put the machine short name (without the domain part).
  3. Now open a Windows command line. For example: Start -> Run -> cmd.exe
  4. Change to the place where you copied the new shortcut. For example: cd C:\
  5. Execute the shorcut giving an additional option. For example: ejabberdctl.lnk status
  6. I only get a response after 4 or 5 tries. If it does not answer in several tries, check the MACHINENAME.

As you can see, this method is not perfect.

Another way: ejabberdctl.cmd

You can also get an exact equivalent of the unix ejabberdctl shellscript by creating a .cmd file with the following line:

erl.exe -noinput -sname ejabberdctl -s ejabberd_ctl -extra %*

Note that it would work only if started in the same directory with ejabberd_ctl.beam file and only if erl.exe is available on the %PATH%, so you may want to modify the script to make it location-independent:

PUT_ERLANG_PATH_HERE\bin\erl.exe -pa "PUT_EJABBERD_PATH_HERE\ebin" -noinput -sname ejabberdctl -s ejabberd_ctl -extra %*
Syndicate content