[opencms-dev] Re: opencms-dev Digest, Vol 45, Issue 2

sweth ysweta at gmail.com
Wed Jun 15 09:45:15 CEST 2005


Error in setup of OpenCMS 6 RC1 

follow the steps and u can work with opencms 6.0
Installation of OpenCms 6.0

This page provides information on how to install OpenCms using Tomcat
and MySQL.This page also consists of Installing J2sdk1.4.2, Tomcat,
and MySQL.Before going to installation let's go through them briefly.

OpenCms

OpenCms is a professional level Open Source Website Content Management
System. OpenCms helps to create and manage complex websites easily
without knowledge of html. An integrated WYSIWYG editor with a user
interface similar to well known office applications helps the user
creating the contents, while a sophisticated template engine enforces
a site-wide corporate layout.

J2sdk1.4.2

Java 2 Platform, Standard Edition (J2SE) provides a complete
environment for applications development on desktops and servers and
for deployment in embedded environments. There are two principal
products in the J2SE platform family: Java Run Time Environment (JRE)
and J2SE Development Kit (JDK). The JRE provides the Java APIs, Java
virtual machine, and other components necessary to run applets and
applications written in the Java programming language. It is also the
foundation for the technologies in the Java 2 Platform, Enterprise
Edition (J2EE) for enterprise software development and deployment. The
JRE does not contain tools and utilities such as compilers or
debuggers for developing applets and applications. The JDK is a
superset of the JRE, and contains everything that is in the JRE, plus
tools such as the compilers and debuggers necessary for developing
applets and applications.

Tomcat

Tomcat is written in Java. As such it needs a Java compiler. Therefore
the first step in the installation is to download and install a
JDK.Tomcat works with JDK 1.2 and later. The directory where you
install the JDK is referred to as %JAVA_HOME%. The next steps vary,
depending on the operating system on which you are installing Tomcat
.The sections that follow explain the installation procedures for the
different operating systems


MySQL

MySQL labels itself "The World's Most Popular Open Source Database" -
which is probably not an exaggeration. First released in 1995 at the
start of the Internet boom, it quickly became the dominant web
database. Compact size and comparative ease of use - and liberal
licensing policy, being distributed from the start as open source (and
later under the GPL license) and free for many purposes. MySQL's
availability for up-and-coming web-server platforms such as Linux as
well as ports for desktop systems such as Windows, at a time when the
major players in the database industry were still concentrating on
"big iron" datacenter hardware played an important role as well.
Currently MySQL is typically found on web servers as a backend for web
applications such as bulletin boards, user tracking and content
management systems

Install the Java 2 SDK, version 1.4 

·	Install the Java 2 SDK, version 1.4 or newer (from SUN http://java.sun.com).
·	If you are using Windows 2000 or Windows XP, you will have to log in
to an account that has "Administrator" privileges. For Windows 98 or
ME, any account will do.
·	Use Windows Explorer to display the directory where you saved Java
and double-click on the file to begin the installation.
·	Accept all of the defaults and suggestions, but make sure that the
location where Java will be installed is at the top level of your C:
drive. Click on "Finish." You should have a directory (folder) named
C:\j2sdk1.4.2_07, with subfolders C:\j2sdk1.4.2_07\bin and
C:\j2sdk1.4.2_07\lib
·	Modify your system variable called "PATH" (so that programs can find
where Java is located).
To do this for Windows 2000 or XP, either right-click on the My
Computer icon or select "System" on the control panel. When the window
titled "System Properties" appears, choose the tab at the top named
"Advanced." Then, click on "Environment Variables." In the bottom
window that shows system variables, select "Path" and then click on
"Edit..." Add C:\j2sdk1.4.2_05\bin as the first item in the list.
·	Note that a semicolon separates all items with no spaces around the
semicolon.
C:\j2sdk1.4.2_05\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\Wbem

For Windows 98 or ME, open the file AUTOEXEC.BAT in Notepad. You
should find a line in this file that begins. Set PATH=…
·	 Modify this line to add C:\j2sdk1.4.1_05\bin; immediately after the
equals sign.
·	Modify or create a system variable called "CLASSPATH," as follows.
In the lower "System Variables" pane choose "New..." and type in
Variable Name "CLASSPATH" and value (note that it begins with dot
semicolon)
.;C:\j2sdk1.4.2_05\lib.
·	To test Java to see if everything is installed properly, open a
command window (a DOS window) and type the command "javac" The result
should be information about the Usage of javac and its options. If you
get a result that "'javac' is not recognized as an internal or
external command, operable program or batch file" then there is a
problem and Java will not work correctly.

Tomcat Installation and Configuration

Download the latest release version. 
·	For Windows installation, the easiest option for you may be to
download the zip file.
·	Extract the compressed file into a directory. 
·	This directory is referred to as CATALINA_HOME, example:
CATALINA_HOME=c:/Tomcat5.0.
·	Now you need to add the JAVA_HOME environment variable. Open the
Control Panel and double-click the System applet.
·	Click the Advanced tab .The Advanced tab of the System applet in the
Control Panel.
·	Click the Environment Variables button. The list of environment
variables for the current user and the list of System environment
variables .Add the new variable to the latter so that Tomcat can be
used by other users. The Environment Variables dialog box.
·	Click the New button in the System Variables section.
·	The New System Variable dialog box. In the Variable Name box, type
JAVA_HOME. In the Variable Value box, type the J2sdk installation
directory.
·	For example, if you installed the J2sdk in C:\j2sdk1.4.2_07
directory, enter C:\j2sdk1.4.2_07.
·	Click OK Tomcat is ready .To run Tomcat, change the directory to the
bin directory %CATALINA_HOME% under and then type startup and press
Enter.
·	Alternatively, you can use the following command:
%CATALINA_HOME%\bin\startup. Tomcat runs in a new console window. To
stop Tomcat, simply close the console window. In testing your servlet
and JSP applications, you will need to start and stopTomcat
frequently.
·	To help you run Tomcat quickly, you can create the follow-ing batch
file and put in on the desktop: cd C:\cd InstallDirectory\binstartupIn
this code, Install Directory is the directory where you install
Tomcat.Now you can run Tomcat by double-clicking the batch file's
icon.
·	To test whether Tomcat was installed properly, open your browser on
the same computer you used to install Tomcat and direct it to the
following URL: http://localhost: 8080. Warning 8080 is needed because
Tomcat runs on port 8080 by default.

Install MySQL

MySQL is a commonly used database used by a lot of ISP's that support
PHP scripting. This is because it's a free, open source database that
can be installed on just about all platforms. It can be configured as
a large volume database similar to Oracle or SQL Server but with
almost no cost. There are however limitations to the MySQL database
and the SQL that can be used to manipulate it, (i.e. v 4.0 has no
stored procedures and you can't do sub-selects) however future
versions are planning on implementing these.
Download Version 4.1.

·	Once you have downloaded the installer package you can run the setup.exe.
·	Run through the package until you get to the screen. Select the
directory you want to install to. Default is C:\mysql.
·	Next choose typical settings for the program then the application
will install.
·	The Program features will be installed.
·	Then select Skip sign-up and click "next" to continue.
·	Click "Finish" to exit the wizard.
·	There appears MySQL server instance configuration wizard.
·	This will allow you to configure MySQL 4.1 server instance, click
"next" to continue.
·	Select detailed configuration and click next to continue.
·	Select Development machines and click next to continue.
·	Select Multifunction Database and click next to continue.
·	Installation path will be present in the browser, click "next" to continue.
·	Select Decision Support and click next to continue.
·	Enable TCP/IP network and click next to continue.
·	Select Standard character set click next to continue.
·	Select the both check boxes and click next to continue.
·	Enter password and click next to continue.
·	Click Execute.
·	Configuration file is created.
·	Press [Finish] to close the wizard.

MySQLAdministrator
The administrator program is very useful for administrating users and
accounts as well as performance.
·	Install the MySQL Administrator using typical settings. Once
installed you will be prompted to connect to a MySQL server. Fill out
the dialog box as you see it below and using username= root and again
with no password.
·	Once you are connected click on User Administration then on the
bottom left list box that shows the User Accounts right-click and Add
new User. Call this user by giving a name and enter a password for
this user. You can fill in the Additional information if you want but
its not important. Once completed click on apply changes.
·	Finally you need to provide access to the database for the user
using the connection localhost. To do this select "localhost" under
the user then select the Schema Privileges tab, highlight the database
and Assign the privileges.
   

 Deploy the opencms.war file

 Copy the opencms.war file from the binary distribution ZIP file to
Tomcat 5.0/webapps/.





Install OpenCms using the Setup-Wizard

 Start the Setup-Wizard by pointing your web browser to
http://localhost: 8080/opencms/setup. Depending on your configuration,
you have to replace localhost with your server name. The port 8080 is
only used if you start Tomcat in standalone mode.
Follow the instructions of the OpenCms Setup-Wizard, using the
"Standard" setup. It will set up the OpenCms database and import all
workplace resources into the system. For normal installations with
MySql and Tomcat running on the same server all default settings will
fit your needs.

 Now your system is ready
Now your system is ready to use. You can login with username: Admin
and password: admin. Please change this password as soon as possible.
Note:
The version of Internet explorer should be 6.0.


More information about the opencms-dev mailing list