Openfire 3.8.2 on CentOS 6.4 (64bit minimal) – 1
*Disabled SELinux [root@FMIVPLOPNFR01 ~]# vi /etc/selinux/config change SELINUX=enforcing to SELINUX=disabled [root@FMIVPLOPNFR01 ~]# reboot (to affect SElinux config) *Download and install Openfire [root@FMIVPLOPNFR01 ~]# yum -y install wget mysql-server glibc.i686 [root@FMIVPLOPNFR01 ~]# wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-3.8.2 2-1.i386.rpm [root@FMIVPLOPNFR01 ~]# rpm -ivh openfire-3.8.2-1.i386.rpm Preparing... ########################################### [100%] 1:openfire ########################################### [100%] [root@FMIVPLOPNFR01 ~]# service openfire start Starting openfire: [root@FMIVPLOPNFR01 bin]# service openfire status openfire is running [root@FMIVPLOPNFR01 bin]# chkconfig --level 2345 openfire on *Disabled firewall for temporary : [root@FMIVPLOPNFR01 ~]# service iptables stop iptables: Flushing firewall rules: [ OK ] iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Unloading modules: [ OK ] [root@FMIVPLOPNFR01 ~]# chkconfig --level 2345 iptables off *Setup MySQL [root@FMIVPLOPNFR01 ~]# service mysqld start [root@FMIVPLOPNFR01 ~]# mysql_secure_installation [root@FMIVPLOPNFR01 ~]# mysqladmin -uroot -p mysql> create database openfire; Query OK, 1 row affected (0.06 sec) mysql> grant all privileges on openfire.* to 'openfire'@'localhost' identified by 'openfirepassword'; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.01 sec) mysql> quit Bye [root@FMIVPLOPNFR01 ~]# chkconfig --level 2345 mysqld on
If get error like this (or Openfire can’t start) :
[root@FMIVPLOPNFR01 bin]# ./openfire.sh ./openfire.sh: /opt/openfire/jre/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory ./openfire.sh: line 165: /opt/openfire/jre/bin/java: Success
Install a glibc.i686 using YUM
[root@FMIVPLOPNFR01 ~]# yum -y install glibc.i686