Port Open for installation of openfire : | |
---|---|
General Port | 5269, 7777, 5229 |
http ports | 9090 , 5222, 7070, 5262, 5275 |
https ports | 9091, 5223, 7443, 5263, 5276 |
Installation steps for installing openfire In Ubuntu 14.04
— sudo apt-get update
* If java is installed then no need to install java. Check with below command that java is installed or not.
— java -version
* If not installed install it with below command.
— sudo apt-get install openjdk-7-jre
* Download openfire
— wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_4_0_1.tar.gz
* Rename to openfire setup
— mv downloadServlet?filename=openfire%2Fopenfire_4_0_1.tar.gz openfire_4_0_1.tar.gz
* Extract openfire setup folder from tar.gz
— tar -xvzf openfire_4_0_1.tar.gz
* Move to /opt folder
— sudo mv openfire /opt
* Edit the openfire config file
— nano /opt/openfire/conf/openfire.xml
* Uncomment <network> tag and put your server’s public ip address inside <interface></interface>.
* Start the openfire service
— /opt/openfire/bin/openfire start
— http://<your host name>:9090
* After visiting the above address I was introduced to the Setup of openfire.
* Choose your language and click on Continue.
* Then we have to deal with Server Settings.
— Add your public IP in the domain name
* Then we have to configure the Database Settings.
— select standard database connection.
* Click on Continue. Then you will be presented to the following Profile Settings.
— Leave this one as default and click on Continue.
* Now you get the screen for administrator account.
— open the phpmyadmin and run below query
INSERT INTO `ofUser` (`username`, `storedKey`, `serverKey`, `salt`,
`iterations`, `plainPassword`, `encryptedPassword`, `name`, `email`,
`creationDate`, `modificationDate`) VALUES ('admin', NULL, NULL, NULL,
NULL, 'admin', NULL, 'Administrator', 'admin@example.com', '0', '0')
* Now open the admin console
— http://<your host name>:9090
* username / password : admin
— After open the admin panel go to the plugins tab.
— Install the REST API plugin
— Go to the server settings and click REST API (It will open the rest api settings)
— Enable “Enabled – the REST API requests will be processed”.
— enable the “Secret key auth”
— copy the secret key
— hit the save settings button.