How to install openfire in centos

[root@openfire~]# rpm -ivh openfire-3.7.1-1.i386.rpm

 Now it's time for database, you can use your desired database like, mssql, oracle etc... i  use MySQL for this tutorial. Let's install MySQL thencreate a database named 'openfire' and an user 'admin'.

If you want feel difficult with external databases, you can also use the embedded database.
[root@openfire~]# yum install mysql-server
[root@openfire~]# mysql -u root -p


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database openfire;
Query OK, 1 row affected (0.00 sec)

mysql> create user admin@localhost identified by 'passwd';
Query OK, 0 rows affected (0.00 sec)

mysql> grant all on openfire.* to admin@localhost identified by 'passwd';
Query OK, 0 rows affected (0.00 sec)

DB has been created just  check it by logging in to  it with specified user to confirm.

[root@openfire~]# mysql -u admin -p passwd

mysql>

if you can see mysql> promt, every thing is fine or else you need to go back and make sure every thing is done correct.

As a final part from terminal restart the openfire service.

[root@openfire~]# /etc/init.d/openfire start

Now open the browser , type localhost:9090  to start openfire web installer.

Just simply follow the instructions as below.

>> SELECT LANGUAGE  >>
>> DOMAIN NAME / SERVER IP >> ( lever every thing default unless you are particular about ports)
>> SELECT  STANDARD DATABASE CONNECTION >> (if you don't want external, simply select embedded and go further)
>> ENTER DATABASE DETAILS AS BELOW >>
MySQL
com.mysql.jdbc.Driver
jdbc.mysql://localhost:3306/openfire
username
password
reset of the things as default.  CLICK CONTINUE

>> DEFAULT for Profiles >>
>> ADMINISTRATOR ACCOUNT >> (this the username & pass used to login admin panel)

that's it, you can log in to admin panel using http://serverip:9090 and start

Comments

Popular Posts

Connecting to Your Linux Instance from Windows Using PuTTY

Install and configure rsyslog Centralized logging server in CentOS

How to scan new iSCSI disks in Linux ?