canmove, Confirmed users
382
edits
(install instructions) |
(update instructions for 0.8) |
||
| Line 1: | Line 1: | ||
These are the instructions for building and installing Openfire from svn. These builds should replace the builds we currently download and install from igniterealtime.org. It is important that Openfire is built with Java 1.5, not Java 1.6. | These are the instructions for building and installing Openfire from svn. These builds should replace the builds we currently download and install from igniterealtime.org. It is important that Openfire is built with Java 1.5, not Java 1.6. For reference, see a [https://bugzilla.mozilla.org/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=&product=support.mozilla.com&component=Chat&long_desc_type=substring&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&status_whiteboard_type=allwordssubstr&status_whiteboard=&keywords_type=allwords&keywords=&resolution=FIXED&emailassigned_to1=1&emailtype1=exact&email1=&emailassigned_to2=1&emailreporter2=1&emailqa_contact2=1&emailtype2=exact&email2=&bugidtype=include&bug_id=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&cmdtype=doit&order=Reuse+same+sort+as+last+time&field0-0-0=attachments.ispatch&type0-0-0=equals&value0-0-0=1 list of current changes from upstream Openfire]. | ||
# Download and install '''JDK 5.0 Update 16''' from [http://java.sun.com/javase/downloads/index_jdk5.jsp http://java.sun.com/javase/downloads/index_jdk5.jsp] | # Download and install '''JDK 5.0 Update 16''' from [http://java.sun.com/javase/downloads/index_jdk5.jsp http://java.sun.com/javase/downloads/index_jdk5.jsp] | ||
# Download and install the latest binary version of ant from [http://ant.apache.org/bindownload.cgi http://ant.apache.org/bindownload.cgi] | # Download and install the latest binary version of ant from [http://ant.apache.org/bindownload.cgi http://ant.apache.org/bindownload.cgi] | ||
# Check out the latest source code using <b><code>svn co https://svn.mozilla.org/projects/livechat/trunk | # Check out the latest source code using <b><code>svn co https://svn.mozilla.org/projects/livechat/trunk livechat</code></b> | ||
# Enter the ''build'' folder and type <b><code>ant plugins</code></b> | # Enter the ''openfire/build'' folder and type <b><code>ant plugins</code></b> | ||
# | # Enter the ''webchat/build'' folder and type <b><code>ant</code></b> | ||
* The previous two commands will build Openfire and the Webchat plugin | |||
After the build has finished, it needs to be installed | After the build has finished, it needs to be installed | ||
# Make a backup of the (staging or production) database, in case the upgrade fails | |||
# Make a copy of the Openfire configuration file. The location is ''/opt/openfire/conf/openfire.xml''. This needs to be restored into the new installation. | |||
# Make sure all previous Openfire installations are gone from /opt. If installed from RPM, uninstall via RPM. /opt/openfire should not exist. | # Make sure all previous Openfire installations are gone from /opt. If installed from RPM, uninstall via RPM. /opt/openfire should not exist. | ||
# In the openfire tree, copy the ''openfire'' folder | # In the openfire tree, copy the just created ''openfire/target/openfire'' folder to ''/opt'' : <b><code>sudo cp -av openfire/target/openfire /opt/openfire</code></b> | ||
# Restore the ''openfire.xml'' file you backed up earlier. Start the server. | |||
To run Openfire, this command should be executed when the server boots: <code>/opt/openfire/bin/openfire.sh</code> | To run Openfire, this command should be executed when the server boots: <code>/opt/openfire/bin/openfire.sh</code> | ||
<b>To avoid [https://bugzilla.mozilla.org/show_bug.cgi?id=458797 bug 458797] and [https://bugzilla.mozilla.org/show_bug.cgi?id=464779 bug 464779], Openfire must always be built and ran with Java 1.5</b>. | |||