Openfire Access

I have installed openfire on RHEL6, I am not able access the openfire http://ip:9090

[root@server1 database]# rpm -aq | grep openfire

openfire-3.7.0-1.i386

INSTALL OPENFIRE:

wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-3.6.3-1 .i386.rpm

rpm -ivh openfire*.rpm

INSTALL MYSQL:

yum install mysql-server

mysqladmin -u root password ‘mysqlsecretpassword’ (single quotes stay)

CONFIGURE MYSQL:

mysql -u root -p

CREATE DATABASE openfire;

GRANT ALL PRIVILEGES ON openfire.* TO “xxxxxx“@”localhost” IDENTIFIED BY “*************“;

FLUSH PRIVILEGES;

EXIT

PERPARE OPENFIRE DATABASE SCHEMA:

cat /opt/openfire/resources/databases/openfire_mysql.sql | mysql -u root -p openfire;

[root@server1 tmp]# iptables -L

Chain INPUT (policy ACCEPT)

target prot opt source destination

fail2ban-SSH tcp – anywhere anywhere tcp dpt:ssh

Chain FORWARD (policy ACCEPT)

target prot opt source destination

Chain OUTPUT (policy ACCEPT)

target prot opt source destination

Chain fail2ban-SSH (1 references)

target prot opt source destination

RETURN all – anywhere anywhere

[root@server1 database]# service openfire restart

Shutting down openfire:

Starting openfire:

[root@server1 database]#

all done without any issues, but still cant get the system to listen to port 9090…!!!

[root@server1 database]# netstat -anp | grep 9090

<…nothing…>

C:>telnet 10.5.1.61 9090

Connecting To 10.5.1.61…Could not open connection to the host, on port 9090: Connect failed

I checked the port…

vi /opt/openfire/conf/openfire.xml

!-- root element, all properties must be under this element -->

9090

9091

en

[root@server1 openfire]# nmap localhost

Only scanned 127.0.0.1

Not shown: 983 closed ports

PORT STATE SERVICE

21/tcp open ftp

22/tcp open ssh

25/tcp open smtp

53/tcp open domain

80/tcp open http

110/tcp open pop3

111/tcp open rpcbind

143/tcp open imap

443/tcp open https

631/tcp open ipp

993/tcp open imaps

995/tcp open pop3s

3306/tcp open mysql

8080/tcp open http-proxy

8081/tcp open blackice-icecap

10024/tcp open unknown

10025/tcp open unknown

Anything in the error log? /openfire/logs

nohup: failed to run command `/opt/openfire/jre/bin/java’: No such file or directory

[root@server1 logs]# which java

/usr/bin/java

[root@server1 logs]# java -version

java version “1.6.0_20”

OpenJDK Runtime Environment (IcedTea6 1.9.8) (rhel-1.39.1.9.8.el6_1-x86_64)

OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

[root@server1 logs]# ls -latr /opt/openfire/jre/bin/java

-rwxr-xr-x 1 daemon daemon 40284 Mar 2 2011 /opt/openfire/jre/bin/java

You have marked you reply as a correct answer. So, not sure do you still need help. Try installing Oracle’s java.

I still need help, how can I install the java on Centos/Rhel… my system is running java 1.6

Not sure about RHEL, but CentOS should have Yum package manager and maybe you can find Oracle/Sun java in there. Sorry, not using CentOS myself.

[root@server1 yum.repos.d]# yum install java

Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager

Updating Red Hat repositories.

rhel-6-server-rpms | 2.4 kB 00:00

Setting up Install Process

Package java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64 already installed and latest version

Nothing to do

any inputs

disable iptables and SELinux services and try…i dont find any prob with openfire

I did but the same result…

[root@server1 share]# service iptables restart

iptables: Flushing firewall rules: [ OK ]

iptables: Setting chains to policy ACCEPT: filter [ OK ]

iptables: Unloading modules: [ OK ]

[root@server1 share]# service iptables stop

[root@server1 share]# cat /etc/sysconfig/selinux

This file controls the state of SELinux on the system.

SELINUX= can take one of these three values:

enforcing - SELinux security policy is enforced.

permissive - SELinux prints warnings instead of enforcing.

disabled - No SELinux policy is loaded.

SELINUX=disabled

SELINUXTYPE= can take one of these two values:

targeted - Targeted processes are protected,

mls - Multi Level Security protection.

SELINUXTYPE=targeted

As per your earlier post…

it is looking for java in /opt/openfire/jre/bin/ folder…change the directory permission to root:root instead of daemon:daemon…

and also if possible set the $JAVA_HOME environment variable in profile and restart machine and see…it should work

Its expecting java in above folder where as it is in /usr/bin…set the $PATH correctly