====== Installing Openfire ====== [[http://www.igniterealtime.org/downloads/index.jsp|Find the lastest version of openfire]] These instructions were created against version 3.3.3. Also AssUMed that you are going to use MySQL. There are many choices LDAP among them. Just make sure that what ever database method you choose that you update the path in the SMF file below. ===== Pre flight check list ===== - **Java** version java -version needs to be 1.5 or later - **MySQL** version mysql --version needs to be 4.12 or later 5.X preferred ====== Getting the distribution ====== We will be installing openfire into /opt/openfire. Change the version number to the current version in the statements below cd /opt/src curl http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_3_3.tar.gz >openfire_3_3_3.tar.gz gtar xvzf openfire_3_3_3.tar.gz mv openfile ../ You now have the official installation instructions in /opt/openfire/documentation/index.html ====== Setting up Database ====== mysql -u USERNAME -pPASSWORD Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 948 to server version: 5.0.22 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> create database openfire; Query OK, 1 row affected (0.00 sec) mysql> exit Bye Then populate the database mysql -u USERNAME -pPASSWORD openfire ====== Grab the plugins ====== Depending on what you want to do there are quite a few [[http://www.igniterealtime.org/projects/openfire/plugins.jsp|plug-ins]] to choose from. Here is an example of installing the gateway plugin. cd /opt/openfire/plugins curl http://www.igniterealtime.org/projects/openfire/plugins/gateway.jar >gateway.jar That is all you need to do. When openfire is up and running it will see the new .jar file and install it automatically. ====== Getting reboot ready ====== If you used a database other than the embedded, MySQL or Postgres then you will need to make sure that the element contains everything required to access that database. ===== smf-openfire.xml ===== ===== Install SMF ===== sudo svccfg import smf_openfire.xml Make sure it came up ok # svcs -a |grep openfire online 13:37:25 svc:/network/XMPP/openfire:default ====== Run the admin console to finish up installation ====== Point your browser to http://your-public-ip:9090/ and finish up the installation.