Install Guide - Binary Install (2.5)

Sakai Binary Distribution Installation Guide

1.0 Verify/Install Java 5.0

Sun Microsystem's Java 2 Platform Standard Edition 5.0 (J2SE 5.0), a.k.a Java 1.5, is required to build and run Sakai. Certain files, such as *.jsp and *.jws, require compilation so downloading and attempting to use only the runtime environment (JRE 5.0) will not suffice.  Mac OS X includes the full version of Java J2SE 5.0, pre-installed with the Java Development Kit (JDK) and the HotSpot virtual machine (VM), so Mac users should not need to install Java.  If you find Sun's version and naming conventions confusing, see Sun Java SE Naming and Versions for an outline of their practices.

Sakai 2.5 is not compatible with Java Platform, Standard Edition 6 (Java SE 6), otherwise known as Java 1.6. Compilation errors have been reported by members of the Community experimenting with Sakai and Java SE 6. Use Java 2 Platform Standard Edition 5.0 (J2SE 5.0) instead.

Sun Microsystems has reported security vulnerabilities in JDK/JRE 5.0 updates 1.5.0_17 and earlier. Sun recommends that you install JDK/JRE 5.0 Update 18.

To confirm that Java is both installed on your system and is the correct version for Sakai, run java -version from the command line:

$ java -version

If Java is installed, the version command will output basic version and build information. Note that Java's "internal" version number will be displayed:

java version "1.5.0_18"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_18)
Java HotSpot(TM) Client VM (build 1.5.0_18, mixed mode, sharing)

If Java is not installed or if you are running the wrong version you can download the latest J2SE 5.0 JDK release from Sun's archive:

Release: http://java.sun.com/javase/downloads/index_jdk5.jsp
Installation Notes: http://java.sun.com/j2se/1.5.0/install.html

Install the SDK, typically in the /opt directory, i.e. /opt/java.

Install the JRE to a different directory (usually the default directory, especially if running Windows) or you may experience runtime issues.

1.1 Set Java environment variables

Java requires two environment variables be set for optimal operation. For UNIX operating systems one typically modifies a startup file like ~/.bash_login to set and export shell variables while Mac users typically set and export environment variables in .bash_profile. For Windows, go to Start -> Control Panel -> System -> Advanced -> Environment Variables and set JAVA_HOME via the GUI (samples below).

JAVA_HOME

Set the JAVA_HOME environment variable to point to the base directory of your Java installation.

Linux/Unix/: export JAVA_HOME=/usr/java/java-current
Mac: export JAVA_HOME=/Library/Java/Home
Windows: JAVA_HOME=C:\j2sdk1.5.0_xx ("xx" = the maintenance/revision number, e.g. "j2sdk1.5.0_13")

If your machine has already set the variable JRE_HOME or if you want to use a particular JRE if you have more than one JRE installed on your machine then you'll want to set the JRE_HOME variable as well. JRE_HOME is what Apache Tomcat uses when it starts up, but it defaults to use JAVA_HOME if JRE_HOME is not set. In most cases, setting JAVA_HOME should cover both cases sufficiently.

PATH

Next, add Java's /bin directory to the PATH environment variable:

Linux/Unix/Mac: export PATH=$PATH:$JAVA_HOME/bin/
Windows: append the string ;C:\jdk1.5.0_xx\bin to the end of the system variable named Path ("xx" = the maintenance/revision number, e.g. "j2sdk1.5.0_13")

You should check that you have set your environment variables correctly. For both Windows XP and Unix/Linux/Mac operating systems start a new shell and run the set command to see your environment variables.

$ set

[excerpt]

JAVA_HOME=/Library/Java/Home
...
PATH=/Library/Java/Home/bin [etc]
....

1.2 Tune the JVM

The default Java Virtual Machine is not adequate to run an application of Sakai's size, and several JVM parameters must be increased to a certain threshold for Sakai to run, while some may be further adjusted for optimal performance on your machines.

JVM tuning is, as a general rule, something of a black art, and we recommend that you take the time to experiment with different memory and garbage collection settings and see what works best in your environment. We can make some minimal recommendations that should serve as a foundation for further experimentation and testing, but the following details are however offered only as samples or suggestions, and we recommend that you consult a systems administrator or local Java guru before making any such changes to a production system.

The standard way to control the JVM options when Tomcat starts up is to have an environment variable JAVA_OPTS defined with JVM startup options in the TOMCAT_HOME/bin/setenv.sh (or .bat) file. Since any given Sakai instance may be deployed for a variety of purposes - ranging from developers doing private testing to large-scale deployments - it's hard to recommend a single set of such options as the preferred ones for every case. We can, however, start with a bare minimum which will at least avoid "Out of Memory" errors, and be suitable for developer installs of the software:

JAVA_OPTS="-server -XX:+UseParallelGC -Xmx876m -XX:MaxPermSize=2160m -Djava.awt.headless=true"

This is an adequate - if minimal - starting point: it selects server mode, sets an adequate heap size, and sizes the permanent generation to accommodate the large number of classes in Sakai. These settings will allow things to be functional for testing and development, but for pilot or production deployments you'll want to give closer attention to the appropriate values for your server. See the Sys Admin Guide for more detailed tips.

If you choose to run Tomcat as a service, review the Tomcat Installation and Configuration section for additional tuning recommendations.

1.3 Define an HTTP proxy (if required)

In environments where local network policy or firewalls require use of an upstream http proxy/cache, Sakai needs to be configured accordingly. Otherwise components or services which use http requests, such as the BasicNewsService for RSS feeds in the News tool, cannot retrieve data from the target URLs. This can be fixed with the following JAVA_OPTS arguments:

export JAVA_OPTS="-Dhttp.proxyHost=cache.some.domain -Dhttp.proxyPort=8080"

2.0 Install Tomcat 5.5.26+

The Apache Tomcat servlet container provides an ideal environment for running Sakai as a web application. Tomcat implements both the Java Servlet and JavaServer Pages (JSP) specifications and can be run in standalone mode or in conjunction with a web application server such as the Apache HTTP server or JBoss. Sakai 2.5.0 was tested using Apache Tomcat 5.5.23 although the latest stable release of Tomcat 5.5 should present no compatibility issues. You can learn more about Tomcat by visiting http://tomcat.apache.org/.

Sakai installations should always be accompanied by a fresh install of Tomcat. It provides a clean environment that simplifies troubleshooting if problems are encountered during the startup phase.

Download and Install Tomcat

Tomcat and Sakai 2.5 releases

Sakai Tomcat (tested against) Tomcat (also works with) Tomcat (avoid)
2.5.0 5.5.23 5.5.25 5.5.26 (known incompatibilities)
2.5.2 5.5.26 5.5.27 ( requires JAVA_OPTS modification)
2.5.3 5.5.26 5.5.27 ( requires JAVA_OPTS modification)
2.5.4 5.5.26 5.5.27 ( requires JAVA_OPTS modification)

Tomcat 5.5.27

This version of Tomcat enforces strict quote escaping which causes run-time errors in Sakai tools that use the JavaServer Faces UI framework. See https://issues.apache.org/bugzilla/show_bug.cgi?id=45015 for more details. If you deploy Sakai using Tomcat 5.5.27 add the following parameter to your JAVA_OPTS environment settings:

-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false

Getting Tomcat

Tomcat can be downloaded as a binary install from

http://archive.apache.org/dist/tomcat/tomcat-5/

Do not download and install the JDK 1.4 Compatibility Package. Sakai 2.5 will not run should you install it.

Choose the core distribution. Windows users have the option of downloading either a Windows Service Installer .exe or a binary *.zip archive. We recommend the *.zip archive over the installer because configuration and log viewing are easier. You can later convert the .zip install into a service install later by running /bin/service.bat (see below for more details).

Unpack the Tomcat archive into your installation directory of choice, e.g. /opt/. Unix/Mac users should create a symbolic link while Windows users should simply rename the base Tomcat directory to /tomcat to simplify the path.

Tomcat 2.5.2+

ln -s apache-tomcat-5.5.26 tomcat

Tomcat 2.5.0

ln -s apache-tomcat-5.5.23 tomcat

Windows users should ensure that the Tomcat path includes no spaces as this causes errors with JavaServer Faces (JSF) tools in Sakai.

Good: C:\opt\tomcat\, C:\sakaistuff\installs\tomcat\
Bad: C:\program files\tomcat\, C:\opt\apache tomcat 5.5.26\

Unix/Mac users should make sure that they have write permissions to the Tomcat servlet container files and directories before proceeding or startup permission errors may occur.

2.1 Set Tomcat environment variables

By convention, the base Tomcat directory (e.g. /usr/local/apache-tomcat-5.5.23) is referred to as $CATALINA_HOME. As a convenience, you should set $CATALINA_HOME as an environment variable. For UNIX operating systems one typically modifies a startup file like ~/.bash_login to set and export shell variables while Mac users typically set and export environment variables in .bash_profile. For Windows, go to Start -> Control Panel -> System -> Advanced -> Environment Variables and set your Tomcat environment variables via the GUI.

CATALINA_HOME

Set the CATALINA_HOME environment variable to point to the base directory of your Tomcat installation.

Unix/Mac: export CATALINA_HOME=/opt/tomcat
Windows: CATALINA_HOME=C:\tomcat

PATH

Add the Tomcat /bin directory to your PATH variable:

Unix/Mac: export PATH=$PATH:$CATALINA_HOME/bin
Windows: append the string ;C:\tomcat\bin to the end of the system variable named Path

2.2 Configure Tomcat

Sakai supports UTF-8 allowing for non-Roman characters, but this requires that Tomcat be configured to accept UTF-8 URLs since it ships with ISO-8859-1 as the default URL encoding. To change this setting, edit $CATALINA_HOME/conf/server.xml. Add the attribute URIEncoding="UTF-8" to the <connector> element. For example:

<Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100" debug="0"
connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8"/>

If you want to run Tomcat on different ports than the defaults, this would also be a good time to make those changes in the server.xml file. See Tomcat configuration documentation for more details.

If you plan to run Tomcat as a standalone web server as opposed to running it in conjunction with the Apache HTTP server then you will want to make a further minor change that may spare some confusion later. The ROOT webapp is the one served up when a request is made to Tomcat's root URL. If you want users to be re-directed automatically to the Sakai application, you must insert an index.html file into /webapps/ROOT that prompts this re-direction. The index.html file should look something like the following:

<html>
<head>
<title>Redirecting to /portal</title>
<meta http-equiv="Refresh" content="0:URL=/portal">
</head>
<body bgcolor="#ffffff" onLoad="javascript:window.location='/portal';">
<div style="margin:18px;width:288px;background-color:#cccc99;padding:18px;border:thin solid #666600;text-align:justify">
<p style="margin-top:0px">
You are being redirected to the Sakai portal.  If you are not automatically redirected, use the link below to continue:<br/>
<a href="/portal">Take me to the Sakai portal</a>
</p>
</body>
</html>

If you don't make this change you (and your users) will need to append /portal to the URL entered to access Sakai each time. If you intend to connect Tomcat with Apache HTTP server you can configure redirections from within Apache, an option that lies outside the scope of this document.

2.3 Tomcat memory settings

You can better manage Tomcat memory usage by creating a SETENV file defining JAVA_OPTS environment variable settings in the tomcat/bin directory.

Mac/Unix: create a file called setenv.sh and add the following line:

export JAVA_OPTS="-server -XX:+UseParallelGC -Xmx768m -XX:MaxPermSize=160m -Djava.awt.headless=true"

Windows: create a file called setenv.bat and add the following line:

set JAVA_OPTS=-server -XX:+UseParallelGC -Xmx768m -XX:MaxPermSize=160m -Djava.awt.headless=true

2.4 Set up Tomcat as a Windows service

You can convert the .zip install into a service install by running service.bat from the /bin directory, e.g.

C:\tomcat\bin> service.bat install

You can add a service name as a second argument to the above script (the default name is "Tomcat5"). You can uninstall the service by replacing "install" with "remove".

To open the configuration window, issue the following command:

C:\tomcat\bin> tomcat5w //ES//Tomcat5

Replace "Tomcat5" with whatever service name you chose for the install. You'll want to set the service to startup automatically ("Startup Type" under the General tab).

Windows users that have installed Tomcat as a service can set most Java options through the Tomcat service manager GUI, but not all of them are as straightforward as inclusion in a single environment variable. To achieve the equivalent of the "-server" option, for example, you'll need to change the Java Virtual Machine path from ..\bin\client\jvm.dll to ..\bin\server\jvm.dll. Then be sure to put the remaining JAVA_OPTS on separate lines in the Java Options field of the GUI. e.g.:

-Xmx768m
-Xms768m
-XX:PermSize=128m
-XX:MaxPermSize=256m

Finally, clear out the Initial Memory Pool and Maximum Memory Pool values, as those might conflict with the options you're putting in the Java Options field. Then click Apply, restart the service, and double-check the service manager to verify that the values have changed.

3.0 Unpack the Sakai binary distribution

The binary distribution of Sakai provides a shortcut for those that already have Tomcat in place and configured as needed (including the database setup and configuration) and it does so by providing a pre-built Sakai that can simply be dropped into place. All you need to do is unpack the binary archive at the root Tomcat directory and the appropriate *.wars, *.jars, etc., for the Sakai application will be deposited in the correct locations.

The Sakai binary archive is available at

http://sakaiproject.org/release/2.5.5

You can download the archive into $CATALINA_HOME and then unpack the archive. Then start up Tomcat by running the Tomcat start up script in $CATALINA_HOME/bin. Unix/Mac users should make sure that they have write permissions to the Tomcat servlet container files and directories before proceeding or startup permission errors may occur.

If you wish to configure a binary installation you'll need to manually create a /sakai folder in $CATALINA_HOME to hold your sakai.properties file.

Binary limitations. Post-release patches are not made available as jars, and so a binary install forces a relatively static implementation that cannot be as readily patched later.

3.1 Configure Sakai

The sakai.properties file is a central configuration file that is typically stored in a /sakai subdirectory relative to the Tomcat home directory ($CATALINA_HOME). It is a non-XML text file containing a series of key/value pairs that can be read using the load method of java.util.properties. Settings in sakai.properties govern everything from setting your institution name to configuring your database. All settings in sakai.properties are only read on startup; thus any changes you make will only take effect when you restart Tomcat.

The default sakai.properties file is located in the Components API project module:

sakai-src/component/component-api/component/src/config/org/sakaiproject/config/sakai.properties

A sample sakai.properties file which documents many of the standard properties can be found in the Reference module:

sakai-src/reference/docs/sakai.properties

To override the defaults you can create your own sakai.properties file either from scratch or from a known working copy. New key/value settings can be added to the sakai.properties. Since any component property can in principle be overridden here, any sample sakai.properties will show only a small fraction of all the possible settings.

If you checkout a copy of sakai.properties from our SVN repository make sure it corresponds to the version of Sakai you are using (e.g. Sakai 2.5.x):

$ svn co http://source.sakaiproject.org/svn/reference/branches/sakai_2-5-x/docs/sakai.properties

If you create your own sakai.properties file the standard place to locate it is $CATALINA_HOME/sakai. This directory is not created by Maven during the build and deployment process, so you will have to create it manually.

You may find it preferable to store Sakai's configuration files outside of the Tomcat file hierarchy. In a development environment, for example, you may find yourself frequently reinstalling Tomcat and unless you create a build script to automate the Tomcat installation and configuration process you will likely want to avoid having to recreate the $CATALINA_HOME/sakai folder and its property file contents each time.

To locate your properties file outside of Tomcat modify the Java startup command or the JAVA_OPTS environment variable and set a system property named sakai.home. Make sure your external location is readable and writable by Tomcat.

-Dsakai.home=/path/to/desired/sakai/home/

3.2 Database default configuration

By default all Sakai distributions (demo, binary, source) are configured to use an in-memory version of HSQLDB on start up. HSQLDB is adequate for testing or local development but does not offer the same reliability and scalability as a more robust relational database. Many developers and the vast majority of Sakai installations choose to run either MySQL or Oracle in their local and production environments and the default and sample sakai.properties include configuration settings for both databases. Click the "Configure" tab above for instructions on setting up Sakai to use MySQL or Oracle.

You will not need to create Sakai database objects (tables, indices, etc) when setting up your database. Sakai generates its own database schema automatically during the Tomcat setup process via the autoDDL setting in sakai.properties.

3.3 Start/Stop Tomcat

Start/stop Tomcat from the terminal by running the appropriate startup/shutdown script located in $CATALINA_HOME/bin:

Unix/Mac

sh startup.sh
sh shutdown.sh

Windows

startup.bat
shutdown.bat

4.0 Explore Sakai

You should at this point have a working Sakai installation. Now it's time to get started with adding users, creating work sites, and otherwise playing around with the tools. We won't try to present a full user's guide here, but we can offer some pointers to get you oriented and on your way, and link you to more exhaustive sources of information elsewhere.

The Gateway Page

Once Tomcat has started successfully, you should be able to direct your browser to its gateway page at http://localhost:8080/portal (or replace 'localhost' with the name of the server where it's installed). From the gateway page you can create new accounts or browse for public site content. You could start by creating a new account, but that can also be done as an admin, and since the admin functions are needed to allow this account the right permissions, it's just as well to start by logging in as the admin user. Sakai's out-of-the-box admin account is simply named 'admin' (with password also 'admin'), so use those credentials to log in.

My Workspace

Every user on the system - including the admin - has a private site called My Workspace. It's the landing point upon logging in, and it's the first site tab visible at the upper left. Running vertically along the left-hand side of the screen are links to the various different tool pages within a given site, and the admin's My Workspace has a different set of such options here than most (each different type of account can be configured to have a different set of tools in its My Workspace by altering a template - see below).

Other Sites

Each new (accessible) site becomes visible as a tab along the top, to the right of My Workspace. For most users, they initially only have access to one site - their My Workspace. The admin user is a little different, in that it has access to two. The second admin site (which you can enter by clicking on its tab) is entitled Administration Workspace which, strangely enough, looks exactly the same as the admin My Workspace. It is.

Why the redundancy? Because you'll likely want to make these admin tools available to a particular user who doesn't have access to the admin's My Workspace (no one has access to other people's My Workspace on the system). To allow anyone access to the admin tools, you need only add them to the list of users of the Administration Workspace, and then promote them in the site to the "admin" role.

Admin Tools

Creating Users

The first thing you may want to do is to change the admin password to something secure, and to start creating a few sample users on your system. You can do both of those tasks through the Users tool on the left. To change the admin user's password, simply click on the 'admin' username in the list of users, and edit the fields on the subsequent page. To create users, click on the New User action link at the top of the tool page.

Creating Sites

If you're itching to create your first worksite, you may be tempted to dive directly into the Sites tool. That would probably be a mistake. The Sites tool is a powerful way to construct an entire site from the ground up, with fine-grained control over its every page, tool, and configuration detail. But this flexible power comes with a price, making for an intimidating interface and epic-scale workflow. The Sites tool is therefore best used as a way to tweak an existing site after the fact, once the standard pieces have been more expediently assembled.

The best way to start creating sites, therefore, is to use the Worksite Setup tool. Click on the New link at the top of the tool page, and then, for simplicity's sake, choose the Project site type, which will allow you to avoid issues of academic term, etc., that are provoked by a "course" site - issues which are probably unnecessary if you just want to start playing with the tools. Either type of site will serve, however: both types of sites have all the tools available to them.

Step through the remaining site creation pages, making your preferred selections. Be sure to click the Create Site button at the end of the process. After doing so, you should see the site title visible as a new tab along the top of the screen.

Adding Users to Sites

Since you set this site up as an admin, the admin is technically the owner of this site, and its only member at first. If you want to add other sample users to this site in different roles, you can do so through the Site Info tool of the site itself.

Click on the tab of your new site (which should now be visible) to enter it, and then click on the Site Info link along the left hand side. Site Info has a number of site maintainer functions available as action links across the top, and Add Participants is the one that will allow you to connect other users to the site. These users will of course need to have been previously created.

As long as we're here in Site Info, it's worth pointing out that the Edit Tools link at the top will allow you to remove and add tools from the site.

Experimenting with Tools

You may have noticed an extra tool appear in your site - one which you didn't explicitly choose - labeled Help. This tool provides online documentation of the various bundle tools, and other facets of the system. This should be your companion as you learn more about the software's functionality.

This Help tool is also reached in a context-sensitive way by clicking on the question mark icons at the upper right of any particular tool frame. Clicking on those question marks will open up the precise content of the tool you happen to be in at the time.

At some later point, when you become comfortable with the standard tools, you may wish to see other, more experimental tools that are available for Sakai. The Sakai distribution includes provisional tools that are still maturing, but can already serve needs in innovative ways that the standard ones do not. These extra tools require additional steps to enable, so that system users will not stumble across them inadvertently if that's not desired, but you are encouraged to evaluate them for your own deployment.

Where to Learn More

User information has yet to be fully consolidated. Attempts are underway to gather and present this information in a more uniform way but in the interim a tourist's guide of the landmarks may be in order.

About the Project

The sakaiproject.org site offers the best background and orientation to the project and its goals, but chances are you've already seen it. For more particular information on the progress and roadmaps of certain tools or other initiatives, see the Confluence space named Management/Project Coordination. That coordinating page will also link you out to Confluence spaces for particular tools, and documentation about them.

Community Participation

The Sakai Community provide email forums on a variety of topics. The lists are open, however, they do reject all non-member email, so you need to join a list before you can post to it, though you can still access its archives.

The four main Sakai community lists are:

Announcements (announcements@collab.sakaiproject.org) - items of community-wide interest in Sakai (receive newsletter every two weeks; learn about conferences and deadlines; follow general progress on upcoming releases; partipipate in calls for community input). A low-volume, read-only list, which everyone should join.

Building Sakai (sakai-dev@collab.sakaiproject.org) - designing, developing, testing, and documenting Sakai (learn about the technical details of building tools or integrating services; find guidelines for design and development of tools and services; locate technical specifications; learn about plans for future releases). For designers, programmers, developers, and quality assurance.

Using Sakai (sakai-user@collab.sakaiproject.org) - teaching and learning, collaboration, and other uses of Sakai (learn about best practices; share experiences; connect with user communities with similar interests, K-12, Higher-Ed, Portfolios). For teachers, staff, students, researchers, instructional designers, instructional technologists and end-user support staff.

Deploying Sakai (production@collab.sakaiproject.org) - implementing, installing, configuring, and supporting Sakai (find release documentation; learn about performance tuning; browse suggested hardware and software configurations; share examples of training, tutorial and support materials). For sysadmins, DBAs, and technical support staff.

There are also a vareity of smaller, topic-specific working groups that use email lists, which you may also find of interest as you get more involved with the community.

To join a Sakai mailing list point your browser to:

http://collab.sakaiproject.org/mailman/listinfo/

and join the lists that interest you. You will be asked to fill out a short form (username, password) and you can select whether or not to receive each list post individually (default) or batched in a daily digest. Once you have submitted your request you will be sent a confirmation email with a short set of instructions for confirming your subscription request.

About Technical Matters

Reference materials for various technical issues are best found in Sakai's subversion repository (where these installation documents are also stored) or in the project's Confluence wiki. The docs in subversion can be found in the reference module, e.g. https://source.sakaiproject.org/svn/reference. See in particular the docs/architecture folder contained there, which contains a wide-ranging collection of technical white papers.

The Confluence wiki is a more informal source of information, but also valuable and broader in scope. New developers in particular should visit the Programmer's Cafe. You are encouraged to create an account there and participate.

But often the most incisive information comes from direct interaction with your peers. As mentioned above, the Collab Server is the place to go for this. For technical questions the best (and most active) such group is DG: Development, also commonly referred to by its alias, "sakai-dev."

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Mar 27, 2008

    Rick Carter says:

    As an aside, this is a bit confusing because it doesn't exist in the 2.5.0 binar...

    As an aside, this is a bit confusing because it doesn't exist in the 2.5.0 binary release build I just downloaded; (maybe it would be worthwhile to include some sort of "samples" directory or even a sakai subdirectory with sakai.properties.sample within with the binary build).

  2. Apr 14, 2008

    Dr Mike Waters says:

    I found that the binary distribution sakai-bin-2-5-0.tar.gz has everything under...

    I found that the binary distribution sakai-bin-2-5-0.tar.gz has everything under a subdirectory - sakai-bin-2.5.0

    This breaks the install since extracting the distro will just create a directory sakai-bin-2.5.0 under CATALINA_HOME and put all the files in there. Tomcat will of course ignore them.

    The following instructions will fix this (until the distribution is fixed)

    1. Follow the instructions until you get to the section named '''Sakai Binary Distribution'''
    2. At this point you need to retar the binary distribution to make it install correctly. The following process will get the package, unpack it, repack it and extract it into tomcat. So here we go. As an appropriate user (eg root, tomcat...) at the unix prompt:
      1. $ cd /opt
      2. $ wget http://source.sakaiproject.org/release/2.5.0/sakai-2-5-0/sakai-bin-2-5-0.tar.gz
      3. $ tar -xzf sakai-bin-2-5-0.tar.gz
      4. $ cd sakai-bin-2.5.0
      5. $ tar -czf ../sakai-bin-2-5-0-tomcat-ready.tar.gz *
      6. $ cd /usr/local/tomcat
      7. $ tar -xzf /opt/sakai-bin-2-5-0-tomcat-ready.tar
    3. Now continue in the section named '''Sakai Configuration'''. You should be able to start tomcat and sakai will come up using HSQLDB.
  3. Apr 14, 2008

    Dr Mike Waters says:

    The sakai.properties file is not included in the binary distribution. This needs...

    The sakai.properties file is not included in the binary distribution. This needs to be extracted from the source distribution as follows:

    1. $ cd /opt
    2. $ wget http://source.sakaiproject.org/release/2.5.0/sakai-2-5-0/sakai-src-2-5-0.tgz
    3. $ tar -xzf sakai-src-2-5-0.tgz
    4. $ cd sakai-src-2.5.0/
    5. $ cp reference/docs/sakai.properties /usr/local/tomcat/sakai

    This assumes that the tomcat installation (ie CATALINA_HOME) is at /usr/local/tomcat

    Now you can continue with the instructions to configure sakai via edits to this file.

  4. May 28, 2008

    Adi Fairbank says:

    Just wanted to add a troubleshooting tip: After installing, I could not get the...

    Just wanted to add a troubleshooting tip:

    After installing, I could not get the Resources Tool to work: it simply showed a blank page, no title or anything. The portlet window was completely empty. Further, there were no errors in the Tomcat log catalina.out. I was baffled, and didn't find anything on the mailing list or elsewhere about this issue.

    Turned out that I forgot to do the Tomcat configuration step of enabling UTF-8 URLs in $CATALINA_HOME/conf/server.xml. So if you experience the symptoms above, check your server.xml... I hope this saves someone some time.