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



wget .i386.rpm

rpm -ivh openfire*.rpm


yum install mysql-server

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


mysql -u root -p


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




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


C:>telnet 9090

Connecting To…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 -->




[root@server1 openfire]# nmap localhost

Only scanned

Not shown: 983 closed ports


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


[root@server1 logs]# java -version

java version “1.6.0_20”

OpenJDK Runtime Environment (IcedTea6 1.9.8) (rhel-

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


SELINUXTYPE= can take one of these two values:

targeted - Targeted processes are protected,

mls - Multi Level Security protection.


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