"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "modules/org.opencms.welcome/resources/release/installation.html" of archive opencms_7.0.5_src.zip:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using (guessed) XML source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 <?xml version="1.0" encoding="UTF-8"?>
    2 
    3 <pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.opencms.org/dtd/6.0/xmlpage.xsd">
    4   <page language="en">
    5     <element name="body">
    6       <links>
    7         <link name="link8" internal="true" type="A">
    8           <target><![CDATA[]]></target>
    9           <anchor><![CDATA[a7]]></anchor>
   10         </link>
   11         <link name="link9" internal="false" type="A">
   12           <target><![CDATA[http://java.sun.com/products/j2se/]]></target>
   13         </link>
   14         <link name="link6" internal="true" type="A">
   15           <target><![CDATA[]]></target>
   16           <anchor><![CDATA[a5]]></anchor>
   17         </link>
   18         <link name="link7" internal="true" type="A">
   19           <target><![CDATA[]]></target>
   20           <anchor><![CDATA[a6]]></anchor>
   21         </link>
   22         <link name="link4" internal="true" type="A">
   23           <target><![CDATA[]]></target>
   24           <anchor><![CDATA[a3]]></anchor>
   25         </link>
   26         <link name="link5" internal="true" type="A">
   27           <target><![CDATA[]]></target>
   28           <anchor><![CDATA[a4]]></anchor>
   29         </link>
   30         <link name="link2" internal="true" type="A">
   31           <target><![CDATA[]]></target>
   32           <anchor><![CDATA[a1]]></anchor>
   33         </link>
   34         <link name="link3" internal="true" type="A">
   35           <target><![CDATA[]]></target>
   36           <anchor><![CDATA[a2]]></anchor>
   37         </link>
   38         <link name="link0" internal="false" type="A">
   39           <target><![CDATA[http://tomcat.apache.org]]></target>
   40         </link>
   41         <link name="link1" internal="false" type="A">
   42           <target><![CDATA[http://www.mysql.com]]></target>
   43         </link>
   44         <link name="link13" internal="false" type="A">
   45           <target><![CDATA[http://www.mysql.com/documentation/index.html]]></target>
   46         </link>
   47         <link name="link10" internal="false" type="A">
   48           <target><![CDATA[http://tomcat.apache.org]]></target>
   49         </link>
   50         <link name="link11" internal="false" type="A">
   51           <target><![CDATA[http://httpd.apache.org]]></target>
   52         </link>
   53         <link name="link12" internal="false" type="A">
   54           <target><![CDATA[http://www.mysql.com/downloads/index.html]]></target>
   55         </link>
   56       </links>
   57       <content><![CDATA[<h1>OpenCms 7 server installation</h1>
   58 <p>This page provides information on how to install OpenCms using  <a href="%(link0)">Tomcat</a> and  <a href="%(link1)">MySQL</a>. All installation parts are described as single steps. After completing each step you are strongly advised to verify the success of your work.</p>
   59 <ul>
   60     <li><a href="%(link2)">Install the Java 2 SDK, version 5 or newer</a></li>
   61     <li><a href="%(link3)">Install Tomcat</a></li>
   62     <li><a href="%(link4)">Install MySQL</a></li>
   63     <li><a href="%(link5)">Deploy the <code>opencms.war</code> file</a></li>
   64     <li><a href="%(link6)">Install OpenCms using the Setup-Wizard</a></li>
   65     <li><a href="%(link7)">Now your system is ready</a></li>
   66     <li><a href="%(link8)">Security issues</a></li>
   67 </ul>
   68 <h2><a id="a1" name="a1"></a>Install the Java 2 SDK, version 1.5 or newer</h2>
   69 <p>Install the Java 2 SDK, version 5 or newer (from SUN <a href="%(link9)">http://java.sun.com/products/j2se/</a>). For details on how to install these components on your operating system, see the documentation that comes with them. You must install the Java  <em>SDK</em>, not the  <em>JRE</em> (Java Runtime Environment) that is also available from SUN. The JRE is  <em>not</em> sufficient to run OpenCms! OpenCms also works with Java 1.4, but you must install the additional Java 1.4 compatibility package for this Java version.</p>
   70 <p><strong>Important</strong>: OpenCms 7 was tested with Java 1.4, 5 (1.5) and 6 (1.6).</p>
   71 <p><strong>Please note:</strong> FreeBSD users may need to setup new entropy sources in the O/S using <code>rndcontrol</code>. Otherwise the installation process may hang. For example, on a machine with a network interface card on IRQs 9, you can execute</p>
   72 <p><code>rndcontrol -s 9</code></p>
   73 <h2><a id="a2" name="a2"></a>Install Tomcat</h2>
   74 <p>OpenCms 7 requires a Servlet 2.4 / JSP 2.0 standards compliant container. Tomcat 5 is the reference implementation of this Standard. This release was tested with Tomcat 5.0.x and Tomcat 5.5.x. Older versions of Tomcat (4.x and earlier) do not support this newer standard and are thus not usable for OpenCms 7.</p>
   75 <p>Install Tomcat from <a href="%(link10)">http://tomcat.apache.org</a> into a folder of your choice. This is the  <code>CATALINA_HOME</code> folder. Don't forget to set the environment variables  <code>CATALINA_HOME</code> and  <code>JAVA_HOME</code>.</p>
   76 <p>Test the installation by running Tomcat in standalone mode and check the examples. Note: Tomcat uses port 8080 in standalone mode. If you wish, you can combine the servlet-engine with a webserver like the Apache Web Server <a href="%(link11)">http://httpd.apache.org</a>. Please see the documentation available with the webserver on how to combine it with your servlet environment.</p>
   77 <p><strong>Please note:</strong> There's an extended OpenCms documentation module available from Alkacon Software GmbH on the opencms.org website that describes how to setup OpenCms with Apache httpd and Tomcat using mod_proxy.</p>
   78 <p><strong>Please note:</strong> On Linux systems, Tomcat's JVM has to be started with the command line argument  <code>-Djava.awt.headless=true</code>.</p>
   79 <h2><a id="a3" name="a3"></a>Install MySQL</h2>
   80 <p>Install MySQL from  <a href="%(link12)">http://www.mysql.com/downloads/index.html</a> (see the MySQL documentation on  <a href="%(link13)">http://www.mysql.com/documentation/index.html</a>). On Windows-based systems MySQL has to be installed on the  <code>C:\</code> drive and should be registered as service using  <code>%MYSQL_HOME%/bin/mysqld -install</code>.</p>
   81 <p>OpenCms can be used with MySQL 4.0, 4.1 and 5.0. For performance reasons we recommend MySQL 5.0.</p>
   82 <p>Start the MySQL server by running the service (WIN32) or executing  <code>%MYSQL_HOME%/bin/mysqld</code> (UNIX).</p>
   83 <p>Check that MySQL is running before you continue by starting the MySQL monitor (execute  <code>mysql</code> in your MySQL bin folder). The database works correctly if a MySQL prompt appears after calling the monitor. Quit the MySQL monitor by typing exit and go to the next step.</p>
   84 <p><strong>Important:</strong> You will have to increase the MySQL configuration variable  <code>max_allowed_packet</code> located in the MySQL configuration file (usually called   <code>my.ini</code>). For OpenCms, the limit should be as high as possible, a setting of  <code>max_allowed_packet=32M</code> is recommended.</p>
   85 <h2><a id="a4" name="a4"></a>Deploy the  <code>opencms.war</code> file</h2>
   86 <p>Copy the  <code>opencms.war</code> file from the binary distribution ZIP file to  <code>CATALINA_HOME/webapps/</code>. Replace   <code>CATALINA_HOME</code> with the real path to your Tomcat installation.</p>
   87 <p>Start (or restart) Tomcat. Tomcat will now deploy the web application OpenCms.</p>
   88 <p><strong>Important</strong>: OpenCms requires that it's  <code>*.war</code> file is unpacked. OpenCms can not be deployed as war file only. Make sure Tomcat does unpack the war file and creates the  <code>CATALINA_HOME/webapps/opencms/</code> directory, placing the OpenCms files in this directory. The default configuration for your Servlet containers / environment could be to not unpack the deployed  <code>*.war</code> file. If this is so, you must unpack the opencms.war file manually. Use an unzip tool for this,   <code>*.war</code> files are just  <code>*.zip</code> files with a different extension. The OpenCms setup wizard will display a warning and not allow you to continue if you did not unpack the  <code>*.war</code> file.</p>
   89 <h2><a id="a5" name="a5"></a>Install OpenCms using the Setup-Wizard</h2>
   90 <p>Start the Setup-Wizard by pointing your webbrowser to  <code>http://localhost:8080/opencms/setup/</code>. Depending on your configuration, you have to replace  <code>localhost</code> with your servername. The port 8080 is only used if you start Tomcat in standalone mode.</p>
   91 <p>Follow the instructions of the OpenCms Setup-Wizard. It will set up the OpenCms database and import all available&nbsp;modules into the system. For normal installations with MySql and Tomcat running on the same server, all default settings will fit your needs. If you are using different database users, be sure that they exist before creating the database tables and importing the modules.</p>
   92 <p><strong>Important:</strong> Make sure you disable all popup blockers and enable Javascript for the server URL you installed OpenCms on. Otherwise you will not be able to log in to the OpenCms Workplace.</p>
   93 <h2><a id="a6" name="a6"></a>Now your system is ready</h2>
   94 <p>Now your system is ready to use. You can login with username:  <code>Admin</code> and password:  <code>admin</code>. Please change this password as soon as possible. The login URL of OpenCms in a default configuration is:   <code>http://localhost:8080/opencms/opencms/system/login/</code>.</p>
   95 <h2><a id="a7" name="a7"></a>Security issues</h2>
   96 <p>Finally after you have installed OpenCms you should have a look at the security settings.</p>
   97 <p>First change the  <code>Admin</code> user password of OpenCms by calling the user preferences (the &quot;checkbox&quot; icon in the top menu on the main screen of the Workplace).</p>
   98 <p>Then you can add a password to the MySQL database. Enter the following commands at the MySQL command line.</p>
   99 <blockquote>
  100 <p><code>use mysql; <br />
  101 insert into user values ('localhost', 'opencmsuser', password('XXXXX'),\ <br />
  102 &nbsp;&nbsp;&nbsp;'N','N','N','N','N','N','N','N','N','N','N','N','N','N'); <br />
  103 insert into db values ('localhost', 'opencms', 'opencmsuser',\ <br />
  104 &nbsp;&nbsp;&nbsp;'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'); <br />
  105 flush privileges;</code></p>
  106 </blockquote>
  107 <p>Make sure you replace  <code>opencmsuser</code> and   <code>opencms</code> with the name of your user and database in case you have changed them on the setup wizard.</p>
  108 <p>Don't forget to add the new user and password to all connect strings of the database in your  <code>opencms.properties</code> file. Only the new user can now connect to the OpenCms tables. For more information see the MySQL documentation.</p>]]></content>
  109     </element>
  110   </page>
  111 </pages>