ejabberd conflicting on port 80 with existing apache instance

Hi,

When I try to run ejabberd with the following command:
sudo erl -pa /var/lib/ejabberd/ebin -sname ejabberd -s ejabberd -ejabberd config \"/etc/ejabberd/ejabberd.cfg\" log_path \"/var/log/ejabberd/ejabberd.log\" -sasl sasl_error_logger \{file,\"/var/log/ejabberd/sasl.log\"\} -mnesia dir \"/var/lib/ejabberd/spool\"

I get these errors:
Erlang (BEAM) emulator version 5.4.9 [source] [threads:0]

Eshell V5.4.9 (abort with ^G)
(ejabberd@localhost)1>
=ERROR REPORT==== 9-Oct-2006::23:36:24 ===
E(<0.229.0>:ejabberd_listener:80): Failed to open socket for {5222,
ejabberd_c2s,
[{access,c2s},
{shaper,
c2s_shaper},
{max_stanza_size,
65536},
starttls,
{certfile,
"./ssl.pem"}]}: eaddrinuse

=ERROR REPORT==== 9-Oct-2006::23:36:24 ===
E(<0.231.0>:ejabberd_listener:80): Failed to open socket for {5269,
ejabberd_s2s_in,
[{shaper,
s2s_shaper},
{max_stanza_size,
131072}]}: eaddrinuse

I'm using apache on this particular server and ip address which I guess is why it fails to open a socket. Also, I don't see any possibility of telling 'ejabberd_listener' not to use port 80. What are my options?

Thanks

ports 5222 and 5269 are being used

mcaction wrote:

I'm using apache on this particular server and ip address which I guess is why it fails to open a socket. Also, I don't see any possibility of telling 'ejabberd_listener' not to use port 80. What are my options?

That 80 mentioned on the error message indicates the line number on the module. So that 80 has no relation to Apache, or port numbers.

Your problem is a conflict in port numbers 5222 and 5269, as explained on this FAQ entry. You have either ejabberd or another Jabber server already running on that machine.

That was it indeed. Thanks

That was it indeed. Thanks so much.

Syndicate content