| 1 | == Chat Server Setup == |
| 2 | |
| 3 | 1) Download Openfire server tar file from http://www.igniterealtime.org/downloads/download-landing.jsp?file=openfire/openfire_3_9_1.tar.gz |
| 4 | Recommended version: 3_9_1 |
| 5 | |
| 6 | 2) Using the .tar.gz, extract the archive to /opt : |
| 7 | {{{ |
| 8 | sudo tar -xzvf openfire_version.tar.gz |
| 9 | sudo mv openfire /opt |
| 10 | cd /opt/openfire/bin |
| 11 | ./openfire start |
| 12 | }}} |
| 13 | Doing this will enable web console. |
| 14 | Open the browser with url http://127.0.0.1:9090/ |
| 15 | |
| 16 | 3) Follow through the onscreen steps to set up web console. |
| 17 | Basic Steps |
| 18 | Language Selection |
| 19 | Server Settings: Choose default |
| 20 | Database settings: Select embedded as of now since database integration is still in progress. |
| 21 | Profile Settings: Default (store users and groups in the server database) |
| 22 | Admin account: Give a valid email address for admin |
| 23 | |
| 24 | 4) After logging into admin console go into server settings tab, go into HTTP Binding and enable “Clients can connect to this server using HTTP binding. ”. and save the settings. |
| 25 | |
| 26 | The port numbers can be changed to whichever you like. |
| 27 | The default ports are 7070 and 7443. |
| 28 | |
| 29 | Go to Server->Server Settings->HTTP Binding and enable script syntax. |
| 30 | |
| 31 | 5) Go into plugins, from available plugins install |
| 32 | Client Control |
| 33 | Presence Service |
| 34 | Search(will already be installed) |
| 35 | User Creation |
| 36 | User import Export |
| 37 | Registration |
| 38 | Broadcast |
| 39 | |
| 40 | If for some reason you cannot see available plugins you can upload jar files after downloading from https://www.igniterealtime.org/projects/openfire/plugins.jsp. |
| 41 | |
| 42 | 6) Restart the Openfire server. |
| 43 | {{{ |
| 44 | sudo /opt/openfire/bin/openfire restart |
| 45 | }}} |
| 46 | |
| 47 | == Setup contact list for each user and greeting message == |
| 48 | |
| 49 | 1) Create a group called "everyone". |
| 50 | Users/Groups -> Groups -> Create New Group . |
| 51 | |
| 52 | 2) Click enable in Contact List (Roster) Sharing. |
| 53 | |
| 54 | 3) Enter “everyone” as Group Name and tick share group with additional users(after clicking select all users option). |
| 55 | |
| 56 | 4) Go to User/Group -> Users -> Registration Properties |
| 57 | |
| 58 | 5) Enter whatever message you want to welcome message box and click on save message. |
| 59 | 6) Enter the default group as “everyone” in default group box and click on save group. |
| 60 | 7) Then in the registration settings box at the top tick: |
| 61 | * Enable welcome message. |
| 62 | * Enable automatically adding of new users to a group |
| 63 | Click on Save Settings. |
| 64 | |
| 65 | 8) Go to User/Groups -> Groups. |
| 66 | Go to everyone group and manually add admin as the user to that group. |
| 67 | |
| 68 | == Setup Status messages == |
| 69 | 1) Go to Server -> Server Settings -> Presence Service and change presence visibility to Anyone. |