[Using Sakai] Solved Re: sakai installation problem update the docs please
Tapas Mishra
mightydreams at gmail.com
Thu Jul 8 02:13:09 PDT 2010
Finally nailed the problem re installed TOMCAT and got Sakai 2.7 working
Ubuntu 10.04,
Java 1.6 ,Tomcat 5.5.29 and Sakai 2.7 bin file
Downloaded apache-tomcat-5.5.29/
and changed its permissions
chown -R www-data:www-data CATALINIA_HOME
then
Here is the doc I am following
http://confluence.sakaiproject.org/display/DOC/Install+Guide+-+Binary+Install+(2.7)
I was able to see TOMCAT welcome message on
http://192.168.1.5:9090
in CATALINA_HOME/conf/server.xml and
in CATALINA_HOME/conf/server-minimal.xml
were the two files I had changed to.
This one is server.xml http://pastebin.com/duZaA7Aw
and this one is server-minimal.xml
http://pastebin.com/PuHM9G12
If you want to see how I made it work on port 9090 the above pastebin
links will give you access to them.
In CATALINA_HOME created a folder named sakai and kept a file sakai.properites.
The content of my sakai.properties can be seen here on this link
http://pastebin.com/QG0DPJKw
The doc talks about
http://confluence.sakaiproject.org/display/DOC/Install+Guide+-+Binary+Install+(2.7)
Set JAVA_OPTS
so in CATALINA_HOME/bin I created a file named
setenv.sh since by default it is not there I am doing all this as root.
and
added
export JAVA_OPTS='-server -Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=512m -XX:NewSize=192m -XX:MaxNewSize=384m
-Djava.awt.headless=true -Dhttp.agent=Sakai
-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
-Dsun.lang.ClassLoader.allowArraySyntax=true'
This is important as setenv.sh file is not created by default.
After doing this change its permissions also to user:owner as
www-data:www-data or what ever is your webservers uid and gid.
Then download sakai 2.7
http://source.sakaiproject.org/release/2.7.0/artifacts/sakai-bin-2.7.0.tgz
Now here comes the most important step I do not know but I feel this
made it worked I changed the permission of downloaded
sakai-bin-2.7.0.tgz
to
www-data:www-data i.e.
after you downloaded sakai-bin-2.7.0.tgz some where
do
cp sakai-bin-2.7.0.tgz CATALINA_HOME/
then before extracting
chmod www-data:www-data sakai-bin-2.7.0.tgz
and then extracted
tar -xzvf sakai-bin-2.7.0.tgz
Who so ever is maintaining the wiki please do add this step as to
change the permission of sakai-bin-2.7.0.tgz to web servers uid:gid
Now I stopped tomcat.
CATALINA_HOME/bin/shutdown.sh
Got following output
./shutdown.sh
Using CATALINA_BASE: /root/lmses/test/apache-tomcat-5.5.29
Using CATALINA_HOME: /root/lmses/test/apache-tomcat-5.5.29
Using CATALINA_TMPDIR: /root/lmses/test/apache-tomcat-5.5.29/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun-1.6.0.20
Using CLASSPATH: /root/lmses/test/apache-tomcat-5.5.29/bin/bootstrap.jar
seems every thing worked fine
now I started TOMCAT
CATALINA_HOME/bin/startup.sh
Got following output
Using CATALINA_BASE: /root/lmses/test/apache-tomcat-5.5.29
Using CATALINA_HOME: /root/lmses/test/apache-tomcat-5.5.29
Using CATALINA_TMPDIR: /root/lmses/test/apache-tomcat-5.5.29/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun-1.6.0.20
Using CLASSPATH: /root/lmses/test/apache-tomcat-5.5.29/bin/bootstrap.jar
Upto here every thing seems to work fine.
Now I checked http://192.168.1.5:9090/portal and I got a screen of
sakai from binary working.
Also sakai.properties file does not come with the binary by default
I was doing it from past 2-3 days so I had got it from the svn set up
other wise the doc no where says that
sakai.properties is available from where ?
Please update this thing.
Voilla finally it worked.
Thanks every one for their support.
You can use this post of mine to make the doc a bit more clear so that
it may help some one who is in problem.
--
Tapas
http://mightydreams.blogspot.com
http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers
More information about the sakai-user
mailing list