Yesterday i have installed OpenFire on one of my CentOS servers. First I had to download it from here, and then install it via yum:
1 |
# yum localinstall openfire-3.9.3-1.i386.rpm |
Because i had 64 bit version of CentOS I had to install also glibc.i686
1 |
# yum install java glibc.i686 |
After that i had to do some things in MySQL:
1 |
# mysql -u root -p |
After that:
1 2 3 4 5 |
mysql> create database openfire; mysql> insert into mysql.user(User, Host, Password) values('openfire','127.0.0.1',PASSWORD('your.secret.password')); mysql> flush privileges; mysql> grant all privileges on openfire.* to openfire@127.0.0.1; mysql> flush privileges; |
Ok, now we have to allow some ports on firewall:
1 |
# nano /etc/sysconfig/iptables |
And add those lines
1 2 3 |
-A INPUT -m state --state NEW -m tcp -p tcp --dport 5222 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 5223 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 9090 -j ACCEPT |
After that we have to start the openfire service and make it run through server restart
1 2 |
# service openfire start # chkconfig --level 235 openfire on |
OK, last thing is to go to your http://your.ip.address:9090 and install it 🙂