<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-13634422</id><updated>2011-11-18T06:47:33.182Z</updated><title type='text'>LAMS installation on CentOS</title><subtitle type='html'>This blog is written to help others to successfully install LAMS on CentOS (a RedHat Enterprise Linux clone). It also covers Apache-JBoss/Tomcat integration.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://lamsbromley.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13634422/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://lamsbromley.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>clive</name><uri>http://www.blogger.com/profile/04834932543873462481</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_q1s98Hsu7OI/SuLawcqhM5I/AAAAAAAAAAM/mv6_N0TRJtU/S220/f2.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-13634422.post-322200914290989025</id><published>2011-02-20T09:14:00.000Z</published><updated>2011-02-20T09:15:09.098Z</updated><title type='text'>DSpace, LAMS, Mahara and OpenSim install on Linux</title><content type='html'>There are five blogs in this series.&lt;br /&gt;&lt;br /&gt;Please select the link below as required:-&lt;br /&gt;&lt;br /&gt;&lt;a href="http://dspacebromley.blogspot.com/"&gt;DSpace Install Blog&lt;/a&gt;   &lt;br /&gt;&lt;br /&gt;&lt;a href="http://lamsbromley.blogspot.com/"&gt;LAMS Install Blog&lt;/a&gt;   &lt;br /&gt;&lt;br /&gt;&lt;a href="http://maharabromley.blogspot.com/"&gt;Mahara Install Blog&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://opensimbromley.blogspot.com/"&gt;OpenSim Install Blog&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://synchronisationbromley.blogspot.com/"&gt;Server Syncronisation Blog&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13634422-322200914290989025?l=lamsbromley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13634422/posts/default/322200914290989025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13634422/posts/default/322200914290989025'/><link rel='alternate' type='text/html' href='http://lamsbromley.blogspot.com/2011/02/dspace-lams-mahara-and-opensim-install.html' title='DSpace, LAMS, Mahara and OpenSim install on Linux'/><author><name>clive</name><uri>http://www.blogger.com/profile/04834932543873462481</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_q1s98Hsu7OI/SuLawcqhM5I/AAAAAAAAAAM/mv6_N0TRJtU/S220/f2.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-13634422.post-2462510174909281937</id><published>2011-02-20T09:09:00.003Z</published><updated>2011-02-20T09:16:11.009Z</updated><title type='text'>Upgrading from LAMS 2.3.4 to 2.3.5</title><content type='html'>&lt;strong&gt;Upgrading from 2.3.4 to 2.3.5&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The process I followed is explained below:&lt;br /&gt;&lt;br /&gt;As the root user download lams-unix-updater-2.3.5.tar.gz into /root:&lt;br /&gt;&lt;br /&gt;lynx http://wiki.lamsfoundation.org/display/lams/Downloads#Downloads-unix&lt;br /&gt;&lt;br /&gt;Stop LAMS:&lt;br /&gt;&lt;br /&gt;service lams2 stop&lt;br /&gt;&lt;br /&gt;Unpack the updater:&lt;br /&gt;&lt;br /&gt;tar -xzvf lams-unix-updater-2.3.5.tar.gz &lt;br /&gt;cd lams-unix-updater-2.3.5&lt;br /&gt;&lt;br /&gt;Now simply run the updater and answer the questions it asks:&lt;br /&gt;&lt;br /&gt;./update-lams.sh&lt;br /&gt;&lt;br /&gt;Start LAMS and restart Apache and your upgrade is complete:&lt;br /&gt;&lt;br /&gt;service lams2 start&lt;br /&gt;service httpd restart&lt;br /&gt;&lt;br /&gt;Note that there is about a one minute wait between restarting LAMS and it becoming available from the browser.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13634422-2462510174909281937?l=lamsbromley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13634422/posts/default/2462510174909281937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13634422/posts/default/2462510174909281937'/><link rel='alternate' type='text/html' href='http://lamsbromley.blogspot.com/2011/02/upgrading-from-lams-234-to-235.html' title='Upgrading from LAMS 2.3.4 to 2.3.5'/><author><name>clive</name><uri>http://www.blogger.com/profile/04834932543873462481</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_q1s98Hsu7OI/SuLawcqhM5I/AAAAAAAAAAM/mv6_N0TRJtU/S220/f2.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-13634422.post-9086595228321910480</id><published>2010-12-24T08:42:00.006Z</published><updated>2010-12-24T09:07:56.848Z</updated><title type='text'>Upgrading from LAMS 2.3.2 to 2.3.4</title><content type='html'>Upgrading from LAMS 2.3.2 to 2.3.4&lt;br /&gt;&lt;br /&gt;This is a two step process as it is first necessary to upgrade from 2.3.2 to 2.3.3 and then subsequently from 2.3.3 to 2.3.4&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Upgrading from 2.3.2 to 2.3.3&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The process I followed is explained below:&lt;br /&gt;&lt;br /&gt;As the root user download lams-unix-patch-2.3.3.tar.gz into /root:&lt;br /&gt;&lt;br /&gt;lynx http://wiki.lamsfoundation.org/display/lams/Downloads#Downloads-unix&lt;br /&gt;&lt;br /&gt;Stop LAMS:&lt;br /&gt;&lt;br /&gt;service lams2 stop&lt;br /&gt;&lt;br /&gt;Unpack the patch and copy the files over:&lt;br /&gt;&lt;br /&gt;tar -xzvf lams-unix-patch-2.3.3.tar.gz&lt;br /&gt;cd lams-unix-patch-2.3.3&lt;br /&gt;"cp" -r lams.ear/* /usr/local/jboss-4.0.2/server/default/deploy/lams.ear/&lt;br /&gt;&lt;br /&gt;To avoid problems with server cacheing delete the following directories:&lt;br /&gt;&lt;br /&gt;rm -rf /usr/local/jboss-4.0.2/server/default/work/&lt;br /&gt;rm -rf /usr/local/jboss-4.0.2/server/default/tmp/&lt;br /&gt;&lt;br /&gt;Start LAMS and restart Apache and your upgrade is complete:&lt;br /&gt;&lt;br /&gt;service lams2 start&lt;br /&gt;service httpd restart&lt;br /&gt;&lt;br /&gt;Note that there is about a one minute wait between restarting LAMS and it becoming available from the browser.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Upgrading from 2.3.3 to 2.3.4&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The process I followed is explained below:&lt;br /&gt;&lt;br /&gt;As the root user download lams-unix-patch-2.3.4.tar.gz into /root:&lt;br /&gt;&lt;br /&gt;lynx http://wiki.lamsfoundation.org/display/lams/Downloads#Downloads-unix&lt;br /&gt;&lt;br /&gt;Stop LAMS:&lt;br /&gt;&lt;br /&gt;service lams2 stop&lt;br /&gt;&lt;br /&gt;Unpack the patch and copy the files over:&lt;br /&gt;&lt;br /&gt;tar -xzvf lams-unix-patch-2.3.4.tar.gz&lt;br /&gt;cd lams-unix-patch-2.3.4&lt;br /&gt;"cp" -r lams.ear/* /usr/local/jboss-4.0.2/server/default/deploy/lams.ear/&lt;br /&gt;cp index.jsp /usr/local/jboss-4.0.2/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war&lt;br /&gt;&lt;br /&gt;To avoid problems with server cacheing delete the following directories:&lt;br /&gt;&lt;br /&gt;rm -rf /usr/local/jboss-4.0.2/server/default/work/&lt;br /&gt;rm -rf /usr/local/jboss-4.0.2/server/default/tmp/&lt;br /&gt;&lt;br /&gt;Start LAMS and restart Apache and your upgrade is complete:&lt;br /&gt;&lt;br /&gt;service lams2 start&lt;br /&gt;service httpd restart&lt;br /&gt;&lt;br /&gt;Note that there is about a one minute wait between restarting LAMS and it becoming available from the browser.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13634422-9086595228321910480?l=lamsbromley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13634422/posts/default/9086595228321910480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13634422/posts/default/9086595228321910480'/><link rel='alternate' type='text/html' href='http://lamsbromley.blogspot.com/2010/12/upgrading-from-lams-232-to-234.html' title='Upgrading from LAMS 2.3.2 to 2.3.4'/><author><name>clive</name><uri>http://www.blogger.com/profile/04834932543873462481</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_q1s98Hsu7OI/SuLawcqhM5I/AAAAAAAAAAM/mv6_N0TRJtU/S220/f2.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-13634422.post-5986753460860177601</id><published>2009-09-01T08:56:00.002+01:00</published><updated>2009-09-01T09:01:24.220+01:00</updated><title type='text'>Upgrading from LAMS 2.3.1 to 2.3.2</title><content type='html'>The process I followed to upgrade from LAMS 2.3.1 to 2.3.2 is explained below:&lt;br /&gt;&lt;br /&gt;As the root user download lams-unix-patch-2.3.2.tar.gz into /root:&lt;br /&gt;&lt;br /&gt;lynx http://wiki.lamsfoundation.org/display/lams/Downloads#Downloads-unix&lt;br /&gt;&lt;br /&gt;Unpack the patch and copy the files over:&lt;br /&gt;&lt;br /&gt;tar -xzvf lams-unix-patch-2.3.2.tar.gz&lt;br /&gt;cd lams-unix-patch-2.3.2&lt;br /&gt;"cp" -r * /usr/local/jboss-4.0.2/server/default/deploy/lams.ear/&lt;br /&gt;&lt;br /&gt;(Note the cp command is in quotes to override the interactive alias mode and save having to say y to every file copied over!)&lt;br /&gt;&lt;br /&gt;Now stop and restart LAMS and your upgrade is complete:&lt;br /&gt;&lt;br /&gt;service lams2 stop&lt;br /&gt;service lams2 start&lt;br /&gt;service httpd restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13634422-5986753460860177601?l=lamsbromley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13634422/posts/default/5986753460860177601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13634422/posts/default/5986753460860177601'/><link rel='alternate' type='text/html' href='http://lamsbromley.blogspot.com/2009/09/upgrading-from-lams-231-to-232.html' title='Upgrading from LAMS 2.3.1 to 2.3.2'/><author><name>clive</name><uri>http://www.blogger.com/profile/04834932543873462481</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_q1s98Hsu7OI/SuLawcqhM5I/AAAAAAAAAAM/mv6_N0TRJtU/S220/f2.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-13634422.post-627569313946838375</id><published>2009-06-23T14:41:00.006+01:00</published><updated>2009-06-23T15:08:05.257+01:00</updated><title type='text'>Upgrading from LAMS 2.2 to 2.3.1</title><content type='html'>The upgrade needs to be completed in two stages, from 2.2 to 2.3 and then from 2.3 to 2.3.1&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;1) Upgrading from 2.2 to 2.3&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;As the root user download lams-unix-updater-2.3.tar.gz into /root:&lt;br /&gt;&lt;br /&gt;lynx http://wiki.lamsfoundation.org/display/lams/Downloads#Downloads-unix&lt;br /&gt;&lt;br /&gt;Unpack the updater and run the update script:&lt;br /&gt;&lt;br /&gt;tar -xzvf lams-unix-updater-2.3.tar.gz&lt;br /&gt;cd lams-unix-updater-2.3&lt;br /&gt;./update-lams.sh&lt;br /&gt;&lt;br /&gt;Answer the questions below:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;The LAMS updater has detected a lams.properties file in /etc/lams2.&lt;br /&gt;Do you wish to use this file? (y)es (n)o (q)uit&lt;/em&gt;&lt;br /&gt;&lt;strong&gt;y&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Do you want to run the LAMS shutdown script before continuing? (Recommended)&lt;br /&gt;(y)es I want to run the JBOSS shutdown script.&lt;br /&gt;(n)o I have already shutdown LAMS. Continue with the upgrade.&lt;br /&gt;(q)uit.&lt;/em&gt;&lt;br /&gt;&lt;strong&gt;y&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Do you wish to automatically backup lams before updating?&lt;br /&gt;(Recommended. NOTE: Requires MySql to be installed at localhost)&lt;br /&gt;Please check the below directories are correct before running this&lt;br /&gt;backup. If they are not, quit the installer and backup LAMS manually.&lt;br /&gt;The space required to backup your LAMS installation:&lt;br /&gt;17M     /var/opt/lams&lt;br /&gt;407M    /usr/local/jboss-4.0.2&lt;br /&gt;423M    total&lt;br /&gt;(y)es I wish to backup LAMS.&lt;br /&gt;(n)o I have already backed up LAMS, I am ready to update.&lt;br /&gt;(q)uit.&lt;/em&gt;&lt;br /&gt;&lt;strong&gt;y&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;Please enter the full path of where you wish to backup lams&lt;/em&gt;&lt;br /&gt;&gt; &lt;strong&gt;/root/lams2.3&lt;/strong&gt;&lt;br /&gt;Note that this directory will be created for you by the installer&lt;br /&gt;&lt;br /&gt;Now start LAMS and your upgrade is complete:&lt;br /&gt;&lt;br /&gt;service lams2 start&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2) Upgrading from 2.3 to 2.3.1&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;As the root user download lams-unix-patch-2.3.1.tar.gz into /root:&lt;br /&gt;&lt;br /&gt;lynx http://wiki.lamsfoundation.org/display/lams/Downloads#Downloads-unix&lt;br /&gt;&lt;br /&gt;Unpack the patch and run the script:&lt;br /&gt;&lt;br /&gt;tar -xzvf lams-unix-patch-2.3.1.tar.gz&lt;br /&gt;cd lams-unix-patch-2.3.1&lt;br /&gt;./install-lams-patch.sh&lt;br /&gt;&lt;br /&gt;You will be asked all the same questions as above. Note that any existing backup directory will be overwritten if you use the same path as given above. &lt;br /&gt;&lt;br /&gt;Now start LAMS and your upgrade is complete:&lt;br /&gt;&lt;br /&gt;service lams2 start&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13634422-627569313946838375?l=lamsbromley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13634422/posts/default/627569313946838375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13634422/posts/default/627569313946838375'/><link rel='alternate' type='text/html' href='http://lamsbromley.blogspot.com/2009/06/upgrading-from-lams-22-to-231.html' title='Upgrading from LAMS 2.2 to 2.3.1'/><author><name>clive</name><uri>http://www.blogger.com/profile/04834932543873462481</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_q1s98Hsu7OI/SuLawcqhM5I/AAAAAAAAAAM/mv6_N0TRJtU/S220/f2.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-13634422.post-640809676605493446</id><published>2009-04-05T09:21:00.037+01:00</published><updated>2009-04-28T06:32:21.273+01:00</updated><title type='text'>LAMS 2.2 install on CentOS 5.2</title><content type='html'>As part of an ongoing investigation into elearning methods we are setting up a new CentOS 5.2 server running Moodle, DSpace and LAMS.&lt;br /&gt;&lt;br /&gt;Currently the CentOS 5.2 server has installed:&lt;br /&gt;&lt;br /&gt;httpd-2.2.3-11.el5_2.centos.4&lt;br /&gt;mysql-server-5.0.45-7.el5&lt;br /&gt;mysql-5.0.45-7.el5&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="FONT-WEIGHT: bold"&gt;1) Moodle 1.9 install&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Moodle 1.9 is now sucessfully up and running on the new server. &lt;br /&gt;&lt;br /&gt;Installation was relatively straightforward. The main problem I encountered with the Moodle install was that when I visited the admin page (index.php) at the end of the installation process it just produced a blank screen. It turned out that PHP5 installed with CentOS 5 did not include MySQL support! &lt;br /&gt; &lt;br /&gt;This was solved as follows:&lt;br /&gt; &lt;br /&gt;yum install php-mysql&lt;br /&gt;service httpd restart&lt;br /&gt;&lt;br /&gt;The index.php script ran happily after this&lt;br /&gt; &lt;br /&gt;Also Moodle Admin &gt; Environment came up with a couple of recommendations so I installed php-xmlrpc and php-mbstring as follows:&lt;br /&gt; &lt;br /&gt;yum install php-xmlrpc&lt;br /&gt;yum install php-mbstring&lt;br /&gt;service httpd restart&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="FONT-WEIGHT: bold"&gt;2) LAMS 2.2 install&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The process followed so far has been:&lt;br /&gt;&lt;br /&gt;Edit the file /etc/my.cnf and add the READ-COMMITTED parameter as shown:&lt;br /&gt;&lt;br /&gt;[mysqld]&lt;br /&gt;transaction-isolation = READ-COMMITTED&lt;br /&gt;etc...&lt;br /&gt;&lt;br /&gt;Restart mysql using the folowing command:&lt;br /&gt;&lt;br /&gt;service mysqld restart&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Install phpMyAdmin 2.11.9.4 using cookie authentication.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As root, and in the root users home directory, download the JDK from Sun and install it using the following commands:&lt;br /&gt;&lt;br /&gt;chmod 755 jdk-6u13-linux-i586-rpm.bin\&amp;File\=jdk-6u13-linux-i586-rpm.bin&lt;br /&gt;./jdk-6u13-linux-i586-rpm.bin\&amp;File\=jdk-6u13-linux-i586-rpm.bin&lt;br /&gt;&lt;br /&gt;Edit /etc/profile and set the JAVA_HOME variable as follows:&lt;br /&gt;&lt;br /&gt;JAVA_HOME=/usr/java/jdk1.6.0_13&lt;br /&gt;export JAVA_HOME&lt;br /&gt;PATH=${PATH}:${JAVA_HOME}/bin&lt;br /&gt;export PATH&lt;br /&gt;&lt;br /&gt;Change the symlink for Java to point to the new location:&lt;br /&gt;&lt;br /&gt;rm /usr/bin/java&lt;br /&gt;ln -siv /usr/java/jdk1.6.0_13/bin/java /usr/bin/java&lt;br /&gt;&lt;br /&gt;The java -version command will now produce the following output:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;java version "1.6.0_13"&lt;br /&gt;Java(TM) SE Runtime Environment (build 1.6.0_13-b03)&lt;br /&gt;Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode)&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Download and install &lt;strong&gt;Wildfire 2.6.2&lt;/strong&gt; into the root users home directory:&lt;br /&gt;&lt;br /&gt;Wildfire can be downloaded from http://www.igniterealtime.org/builds/wildfire/wildfire_2_6_2.rpm&lt;br /&gt;&lt;br /&gt;rpm -ivh wildfire_2_6_2.rpm&lt;br /&gt;rpm -q wildfire&lt;br /&gt;&lt;em&gt;wildfire-2.6.2-1&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;The configuration of the Wildfire server is covered later in this blog posting.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As root, and in the root users home directory, download jboss using lynx and unpack jboss:&lt;br /&gt;&lt;br /&gt;lynx http://www.jboss.org/jbossas/downloads/&lt;br /&gt;cp jboss-4.0.2.tar.gz /usr/local&lt;br /&gt;cd /usr/local&lt;br /&gt;tar -xzvf jboss-4.0.2.tar.gz&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Edit /etc/profile and set the JBOSS_HOME variable as follows:&lt;br /&gt;&lt;br /&gt;JBOSS_HOME=/usr/local/jboss-4.0.2&lt;br /&gt;export JBOSS_HOME&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now test jboss is working:&lt;br /&gt;&lt;br /&gt;cd jboss-4.0.2&lt;br /&gt;cd bin&lt;br /&gt;./run.sh &amp;&lt;br /&gt;&lt;br /&gt;Many screens of information appear as jboss starts and eventually the following line is displayed:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;10:03:41,943 INFO  [Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 16s:278ms&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Use the following commands to confirm jboss is running:&lt;br /&gt;&lt;br /&gt;nmap 127.0.0.1&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2009-04-05 10:05 BST&lt;br /&gt;Interesting ports on localhost.localdomain (127.0.0.1):&lt;br /&gt;Not shown: 1672 closed ports&lt;br /&gt;PORT     STATE SERVICE&lt;br /&gt;25/tcp   open  smtp&lt;br /&gt;80/tcp   open  http&lt;br /&gt;443/tcp  open  https&lt;br /&gt;631/tcp  open  ipp&lt;br /&gt;3306/tcp open  mysql&lt;br /&gt;4444/tcp open  krb524&lt;br /&gt;8009/tcp open  ajp13&lt;br /&gt;8080/tcp open  http-proxy&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;ps aux | grep jdk&lt;br /&gt;&lt;em&gt;root     15109 98.3  1.3 317272 106448 pts/1   Sl   10:09   0:20 /usr/java/jdk1.6.0_13/bin/java -server -Xms128m -Xmx128m -Dprogram.name=run.sh -Djava.endorsed.dirs=/usr/local/jboss-4.0.2/lib/endorsed -classpath /usr/local/jboss-4.0.2/bin/run.jar:/usr/java/jdk1.6.0_13/lib/tools.jar org.jboss.Main&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Stop jboss:&lt;br /&gt;&lt;br /&gt;./shutdown.sh -S&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As root, and in the root users home directory, download LAMS using lynx and unpack the installer:&lt;br /&gt;&lt;br /&gt;lynx http://lamscommunity.org/2.2/stable/unix/lams-unix-installer-2.2.tar.gz&lt;br /&gt;tar -xxvf lams-unix-installer-2.2.tar.gz&lt;br /&gt;cd lams-unix-installer-2.2&lt;br /&gt;&lt;br /&gt;Note: The lams.properties file contains the installation settings for LAMS. It is important you get the settings in this file right. If you subsequently change lams.properties and re-run the installer you will overwrite your existing LAMS installation. Once LAMS has been installed all subsequent configuration changes must be made from and Admin login and not by editing lams.properties&lt;br /&gt;&lt;br /&gt;Edit the lams.properties file and change the following settings (in bold):&lt;br /&gt;&lt;br /&gt;# Installation Options   &lt;br /&gt;&lt;br /&gt;# The lamshome directory, will contain repository, temp and dump files&lt;br /&gt;# Make sure this location has sufficient disk space as several files will be stored&lt;br /&gt;# here during run time&lt;br /&gt;LAMS_DIR=/var/opt/lams&lt;br /&gt;&lt;br /&gt;# Username and password for the system admin for LAMS&lt;br /&gt;LAMS_USER=&lt;strong&gt;yyyy&lt;/strong&gt;&lt;br /&gt;LAMS_PASS=&lt;strong&gt;xxxx&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;# Default language locale and text direction for LAMS, see section 3 of the readme&lt;br /&gt;&lt;strong&gt;# Note that for English the ONLY choice supported by LAMS is en_AU&lt;/strong&gt; &lt;br /&gt;LOCALE=&lt;strong&gt;en_AU&lt;/strong&gt;&lt;br /&gt;LOCALE_DIRECTION=LTR&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Database name, username and password for your LAMS database&lt;br /&gt;DB_NAME=lams2&lt;br /&gt;DB_USER=lamsuser&lt;br /&gt;DB_PASS=&lt;strong&gt;xxxx&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Wildfire configuration, used for chat tools. see the documentation under&lt;br /&gt;# "Configuring the Chat Server" at:&lt;br /&gt;# http://wiki.lamsfoundation.org/display/lams/Building+LAMS&lt;br /&gt;&lt;strong&gt;# Make up a wildfire admin password&lt;br /&gt;# Make a note of these settings as you will need them when configuring Wildfire later&lt;/strong&gt;&lt;br /&gt;WILDFIRE_DOMAIN=localhost&lt;br /&gt;WILDFIRE_CONFERENCE=conference.localhost&lt;br /&gt;WILDFIRE_USER=admin&lt;br /&gt;WILDFIRE_PASS=&lt;strong&gt;zzzz&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Essential settings&lt;br /&gt;&lt;br /&gt;# The port through which you want jboss to run&lt;br /&gt;LAMS_PORT=8080&lt;br /&gt;&lt;br /&gt;# The url you intend to use to run LAMS&lt;br /&gt;# NOTE: Make sure the URL ends with a "/" or you will have problems running LAMS&lt;br /&gt;SERVER_URL=&lt;strong&gt;http://vleinternal.bromley.ac.uk/lams/&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;# Where your home directory of JBoss is&lt;br /&gt;# This will contain your LAMS installation&lt;br /&gt;JBOSS_DIR=/usr/local/jboss-4.0.2&lt;br /&gt;&lt;br /&gt;# The directory that contains your JDK. (Must be 1.5 or higher)&lt;br /&gt;&lt;strong&gt;JDK_DIR=/usr/java/jdk1.6.0_13&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;# The location of your mysql executable (Must be 5.0 or higher)&lt;br /&gt;SQL_DIR=/usr/bin&lt;br /&gt;&lt;br /&gt;# The location of your MySql server, leave as localhost unless you are useing MySql on&lt;br /&gt;# a separate server&lt;br /&gt;SQL_HOST=localhost&lt;br /&gt;&lt;br /&gt;# The port that your MySql server is running through&lt;br /&gt;SQL_PORT=3306&lt;br /&gt;&lt;br /&gt;# The URL that your jdbc driver will be running through&lt;br /&gt;SQL_URL=jdbc:mysql://${SQL_HOST}:${SQL_PORT}/${DB_NAME}?characterEncoding=utf8&amp;autoReconnect=true&lt;br /&gt;&lt;br /&gt;# The root password to access the database&lt;br /&gt;DB_ROOT_PASSWORD=&lt;strong&gt;xxxx&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Run the lams unix installer script as follows:&lt;br /&gt;&lt;br /&gt;./install-lams.sh&lt;br /&gt;&lt;br /&gt;&lt;em&gt;JDK_DIR is valid&lt;br /&gt;MySql host is compatible with LAMS.&lt;br /&gt;JBoss Directory Found&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;WELCOME to the LAMS 2.2 unix Installer!&lt;br /&gt;&lt;br /&gt;Please ensure you have read and accepted the license agreement before continuing&lt;br /&gt;&lt;br /&gt;Make sure you have correctly configured the lams.properties file to your&lt;br /&gt;preferred settings.&lt;br /&gt;&lt;br /&gt;You should read the installation guide before continuing.&lt;br /&gt;&lt;br /&gt;JAVA_HOME = /usr/java/jdk1.6.0_13&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;LAMS requires about 117MB of space, continue with installation? (y)es, (n)o: &lt;strong&gt;y&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Do you wish to install LAMS as a Java Service Wrapper? (y)es, (n)o, (q)uit: &lt;strong&gt;y&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The installer could not detect a suitable wrapper, please select one from below.&lt;br /&gt;(1) wrapper-linux-x86-32-3.2.3&lt;br /&gt;(2) wrapper-linux-x86-64-3.2.3&lt;br /&gt;(3) wrapper-linux-ppc-64-3.2.3&lt;br /&gt;(n) No wrapper, continue with install&lt;br /&gt;(q) quit&lt;br /&gt;&gt; &lt;strong&gt;1&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Using LAMS database with the following parameters...&lt;br /&gt;Database name: lams2&lt;br /&gt;Database user: lamsuser&lt;br /&gt;Database password: xxxx&lt;br /&gt;&lt;br /&gt;Creating LAMS database.&lt;br /&gt;Buildfile: ant-scripts/configure-database.xml&lt;br /&gt;Database Created.&lt;br /&gt;&lt;br /&gt;Filling database with LAMS tables&lt;br /&gt;&lt;br /&gt;Buildfile: ant-scripts/filter-config.xml&lt;br /&gt;Buildfile: ant-scripts/configure-database.xml&lt;br /&gt;&lt;br /&gt;Done.&lt;br /&gt;&lt;br /&gt;Database Created.&lt;br /&gt;&lt;br /&gt;Copying lams.ear directory to /usr/local/jboss-4.0.2/server/default/deploy.&lt;br /&gt;&lt;br /&gt;Done.&lt;br /&gt;&lt;br /&gt;Configuring JBoss with your settings.&lt;br /&gt;Buildfile: ant-scripts/configure-deploy.xml&lt;br /&gt;&lt;br /&gt;Configuring the java Wrapper&lt;br /&gt;&lt;br /&gt;Installing and configuring Java Service Wrapper: wrapper-linux-x86-32-3.2.3&lt;br /&gt;Buildfile: ant-scripts/configure-deploy.xml&lt;br /&gt;Done.&lt;br /&gt;&lt;br /&gt;Copying lams.properties to /etc.&lt;br /&gt;&lt;br /&gt;LAMS 2.2 Configuration completed!&lt;br /&gt;Please view the README for instructions on how to run LAMS.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Getting Apache to talk to JBoss&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I decided to use mod_jk instead of the deprecated mod_jk2 to link Apache and JBoss together. &lt;br /&gt;&lt;br /&gt;As root, and in the root users home directory, download the source for mod_jk using lynx, compile and install the module:&lt;br /&gt;&lt;br /&gt;lynx http://archive.apache.org/dist/jakarta/tomcat-connectors/jk/source/jk-1.2.15/&lt;br /&gt;tar -xzvf jakarta-tomcat-connectors-1.2.15-src.tar.gz&lt;br /&gt;cd jakarta-tomcat-connectors-1.2.15-src&lt;br /&gt;cd jk/native&lt;br /&gt;./buildconf.sh&lt;br /&gt;yum install httpd-devel&lt;br /&gt;./configure --with-apxs=/usr/sbin/apxs&lt;br /&gt;make&lt;br /&gt;cp /root/jakarta-tomcat-connectors-1.2.15-src/jk/native/apache-2.0/mod_jk.so /usr/lib/httpd/modules&lt;br /&gt;&lt;br /&gt;Now create the following files:&lt;br /&gt;cd /etc/httpd/conf&lt;br /&gt;Create the file workers.properties containing the following:&lt;br /&gt;&lt;br /&gt;ps=/&lt;br /&gt;worker.list=worker1&lt;br /&gt;worker.default.port=8009&lt;br /&gt;worker.default.host=localhost&lt;br /&gt;worker.default.type=ajp13&lt;br /&gt;worker.default.lbfactor=1&lt;br /&gt;&lt;br /&gt;cd /etc/httpd/conf.d&lt;br /&gt;Create the file jk.conf containing the following:&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Mod_jk2 allows the Apache Web server to connect to application&lt;br /&gt;# servers using the AJP protocol.  This allows web applications to&lt;br /&gt;# be integrated seamlessly into your Apache server's URI space and&lt;br /&gt;# utilize Apache features such as SSL processing.&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;LoadModule jk_module modules/mod_jk.so&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# mod_jk is configured in /etc/httpd/conf/workers.properties&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Where to find workers.properties&lt;br /&gt;JkWorkersFile /etc/httpd/conf/workers.properties&lt;br /&gt;# Where to put jk logs&lt;br /&gt;JkLogFile /var/log/httpd/mod_jk.log&lt;br /&gt;# Set the jk log level [debug/error/info]&lt;br /&gt;JkLogLevel info&lt;br /&gt;# Select the log format&lt;br /&gt;JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "&lt;br /&gt;# JkOptions indicate to send SSL KEY SIZE,&lt;br /&gt;JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories&lt;br /&gt;# JkRequestLogFormat set the request format&lt;br /&gt;JkRequestLogFormat "%w %V %T"&lt;br /&gt;# Send  servlet for context /lams to worker named worker1&lt;br /&gt;JkMount /lams worker1&lt;br /&gt;# Send JSPs for context /lams/* to worker named worker1&lt;br /&gt;JkMount /lams/* worker1&lt;br /&gt;#&lt;br /&gt;JkMount /upload/* worker1&lt;br /&gt;#&lt;br /&gt;JkMount /jmx-console/* worker1&lt;br /&gt;&lt;br /&gt;Now to start LAMS:&lt;br /&gt;&lt;br /&gt;service lams2 start&lt;br /&gt;&lt;em&gt;Starting LAMS...&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;ps aux | grep jdk&lt;br /&gt;&lt;em&gt;root     20297 87.2  6.2 961780 515220 ?       Sl   07:09   2:28 /usr/java/jdk1.6.0_13/bin/java -Dprogram.name=run.sh -XX:MaxPermSize=256m -Xms246m -Xmx512m -Djava.library.path=../lib -classpath ../lib/wrapper.jar:../bin/run.jar:/usr/java/jdk1.6.0_13/lib/tools.jar -Dwrapper.key=9PVMzuBXkSSobgBc -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=20295 -Dwrapper.version=3.2.3 -Dwrapper.native_library=wrapper -Dwrapper.service=TRUE -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp org.jboss.Main&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;nmap 127.0.0.1&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2009-04-06 07:13 BST&lt;br /&gt;Interesting ports on localhost.localdomain (127.0.0.1):&lt;br /&gt;Not shown: 1672 closed ports&lt;br /&gt;PORT     STATE SERVICE&lt;br /&gt;25/tcp   open  smtp&lt;br /&gt;80/tcp   open  http&lt;br /&gt;443/tcp  open  https&lt;br /&gt;631/tcp  open  ipp&lt;br /&gt;3306/tcp open  mysql&lt;br /&gt;4444/tcp open  krb524&lt;br /&gt;8009/tcp open  ajp13&lt;br /&gt;8080/tcp open  http-proxy&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Hurray LAMS is now running. :)))&lt;br /&gt;&lt;br /&gt;It is also accessible on port 80 of the server.&lt;br /&gt;&lt;br /&gt;According to Luke Foxton (Macquarie University) when you choose to install with the wrapper, the installer alters the run-lams.sh script so it will work with the wrapper, with the idea being that once installed, the wrapper will automatically restart lams when the system reboots. However, this means that you can no longer use the run-lams.sh script to start lams directly.&lt;br /&gt;&lt;br /&gt;The Wildfire chat server can be configured from a Web interface once it is running.&lt;br /&gt;&lt;br /&gt;cd /opt/wildfire/bin&lt;br /&gt;wildfire start&lt;br /&gt;nano /etc/rc.d/rc.local &lt;br /&gt;and append the following line&lt;br /&gt;&lt;br /&gt;/opt/wildfire/bin/wildfire start&lt;br /&gt;&lt;br /&gt;If you intend to use an external database for Wildfire you will at this point need to set up a wildfire database in MySQL, with a user who has appropriate privileges.&lt;br /&gt;&lt;br /&gt;Then visit 127.0.0.1:9090 from your browser to complete the configuration. Note that you will need to use the Wildfire settings from lams.properties here.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="FONT-WEIGHT: bold"&gt;3) Moodle - LAMS integration&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Please note that it is necessary to &lt;strong&gt;retain the LAMS v1 module&lt;/strong&gt; that came with Moodle and just keep it hidden. I deleted this module, not thinking I would need it and then found that with a LAMS v2 activity the buttons, Open Authoring and Add a New Lesson, were missing for Course Creators and Teachers. On re-installing the LAMS v1 module and keeping it hidden these buttons reappeared!&lt;br /&gt;&lt;br /&gt;Download and install the lamstwo module:&lt;br /&gt;&lt;br /&gt;cd /home/ictuser/moodle/mod&lt;br /&gt;lynx http://wiki.lamsfoundation.org/display/lams/Integrations&lt;br /&gt;unzip lamstwo.zip&lt;br /&gt;mv lamstwo.php /home/ictuser/moodle/lang/en_utf8/&lt;br /&gt;rm lamstwo.zip&lt;br /&gt;&lt;br /&gt;Then login to LAMS as administrator and go to Sys Admin &gt; Maintain Integrated Servers&lt;br /&gt;&gt; Add a New Server&lt;br /&gt;&lt;br /&gt;Fill in the fields in the form paying particular attention to the ID, Key and User Information URL fields. My user information field contained the following string:&lt;br /&gt;&lt;br /&gt;http://vleinternal.bromley.ac.uk/ict/mod/lamstwo/userinfo.php?ts=%timestamp%&amp;un=%username%&amp;hs=%hash%&lt;br /&gt;&lt;br /&gt;Save your changes and then visit the Moodle admin page at which point the new tables for the lamstwo module will be added to the database. Visit the Modules &gt; Activities &gt; LAMSv2 page and fill in the settings.&lt;br /&gt;&lt;br /&gt;Click on the validate button and if all is well you will get the following message "These settings are valid". This means that Moodle can talk to LAMS and LAMS can talk to Moodle.&lt;br /&gt;&lt;br /&gt;In my case validation failed and it was only with the help of Jun-Dir and some painstaking research on my part that I found out that the cause of the failure was an extra blank line at the end of Moodle's config.php script outside the closing PHP tag!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13634422-640809676605493446?l=lamsbromley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13634422/posts/default/640809676605493446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13634422/posts/default/640809676605493446'/><link rel='alternate' type='text/html' href='http://lamsbromley.blogspot.com/2009/04/lams-22-install-on-centos-52.html' title='LAMS 2.2 install on CentOS 5.2'/><author><name>clive</name><uri>http://www.blogger.com/profile/04834932543873462481</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_q1s98Hsu7OI/SuLawcqhM5I/AAAAAAAAAAM/mv6_N0TRJtU/S220/f2.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-13634422.post-113977564193462008</id><published>2006-02-12T20:19:00.000Z</published><updated>2006-06-04T12:55:03.950+01:00</updated><title type='text'>LAMS 1.0.x installation procedure on CentOS 4</title><content type='html'>&lt;p&gt;&lt;br /&gt;Written by Clive Gould. (To contact Clive please use this &lt;a href="http://ce.bromley.ac.uk/linux/booking.htm"&gt;messages&lt;/a&gt; form. Our Linux training website can be reached by clicking &lt;a href="http://ce.bromley.ac.uk/linux"&gt;here&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Please contact me using the above form if you find anything in this blog which is unclear or inaccurate and I'll be happy to put it right.&lt;br /&gt;&lt;br /&gt;&lt;a name="menu"&gt;&lt;/a&gt;&lt;span style="FONT-WEIGHT: bold"&gt;Menu&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1) &lt;a href="#one"&gt;LAMS 1.0.1 installation procedure&lt;/a&gt;&lt;br /&gt;2) &lt;a href="#two"&gt;LAMS 1.0.2 installation procedure&lt;/a&gt;&lt;br /&gt;3) &lt;a href="#three"&gt;Installing LAMS 1.0.2 alongside DSpace&lt;/a&gt;&lt;br /&gt;4) &lt;a href="#four"&gt;Sorting out 400, 403 and 404 errors&lt;/a&gt;&lt;br /&gt;5) &lt;a href="#five"&gt;Moodle Lams Integration Error with config.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name="one"&gt;&lt;/a&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="FONT-WEIGHT: bold"&gt;1) LAMS 1.0.1 installation procedure&lt;/span&gt; (July 2005)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;i) Introduction&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I spent some time getting &lt;a href="http://www.lamsfoundation.org/"&gt;LAMS&lt;/a&gt; 1.0.1 (Learning Activity Management System) to work on a &lt;a href="http://www.centos.org"&gt;CentOS 4&lt;/a&gt; Linux platform.&lt;br /&gt;&lt;br /&gt;The actual procedure turned out to be quite straightforward, but was complicated along the way by confusing documentation and mistakes I made. The reason I chose CentOS 4 at the time was mainly because it had mysql 4 pre-installed, which Fedora Core 3 did not.&lt;br /&gt;&lt;br /&gt;I did not realise that the LAMS installer Redhat script would take care of everything for me so went about things the "hard way" by following the custom installation procedure in the &lt;a href="http://lamsinternational.com/manuals/"&gt;LAMS documentation&lt;/a&gt;. This blog is a historical document and explains the process I went through. &lt;strong&gt;If you are using this as an install guide, you can save yourself a lot of time and heartache by reading the entire blog BEFORE beginning your installation!&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;ii) Historical Installation Procedure&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;All the following operations were carried out as root.&lt;br /&gt;&lt;br /&gt;Firstly I installed the sdk. I downloaded the executable rpm.bin from Sun. I had first to download the rpm.bin then chmod it and run it to extract the rpm. I then installed the sdk in /usr/java by using the command:&lt;br /&gt;&lt;br /&gt;rpm -ivh j2sdk1.4.2_08.rpm&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then appended paths to /etc/profile as follows:.&lt;br /&gt;&lt;br /&gt;JAVA_HOME=/usr/java/j2sdk1.4.2_08&lt;br /&gt;export JAVA_HOME&lt;br /&gt;PATH=${PATH}:${JAVA_HOME}/bin&lt;br /&gt;export PATH&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I started started mysql and checked the version number as shown below:&lt;br /&gt;&lt;br /&gt;[root@cc ~]# service mysqld start&lt;br /&gt;&lt;em&gt;Initializing MySQL database: [ OK ]&lt;br /&gt;Starting MySQL: [ OK ]&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;[root@cc ~]# mysqladmin version&lt;br /&gt;&lt;em&gt;mysqladmin Ver 8.41 Distrib 4.1.10a, for redhat-linux-gnu on i686&lt;br /&gt;Copyright (C) 2000 MySQL AB &amp; MySQL Finland AB &amp;amp; TCX DataKonsult AB&lt;br /&gt;This software comes with ABSOLUTELY NO WARRANTY. This is free software,&lt;br /&gt;and you are welcome to modify and redistribute it under the GPL license&lt;br /&gt;&lt;br /&gt;Server version 4.1.10a&lt;br /&gt;Protocol version 10&lt;br /&gt;Connection Localhost via UNIX socket&lt;br /&gt;UNIX socket /var/lib/mysql/mysql.sock&lt;br /&gt;Uptime: 29 sec&lt;br /&gt;&lt;br /&gt;Threads: 1 Questions: 2 Slow queries: 0 Opens: 11 Flush tables: 1&lt;br /&gt;Open tables: 0 Queries per second avg: 0.069&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then set the root password for mysql using the command:&lt;br /&gt;&lt;br /&gt;[root@cc ~]# mysqladmin -u root password "xxxx"&lt;br /&gt;&lt;br /&gt;I replaced the xxxs's above with my new mysql root password. (I made the mistake of including spaces in my initial password. Do not do this as the LAMS install script will not work properly if you include spaces in this password!)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then used the chkconfig command to automaticaly start mysql on boot as follows:&lt;br /&gt;&lt;br /&gt;root@cc ~]# chkconfig mysqld on&lt;br /&gt;&lt;br /&gt;[root@cc ~]# chkconfig --list grep mysqld&lt;br /&gt;&lt;em&gt;mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It was now necessary to tell mysql to use READ-COMMITTED transaction isolation instead of the default setting of this parameter. This was achieved by setting the transaction-isolation as in the default configuration file /etc/my.cnf as shown below:&lt;br /&gt;&lt;br /&gt;[root@cc ~]# nano /etc/my.cnf&lt;br /&gt;&lt;br /&gt;[mysqld]&lt;br /&gt;transaction-isolation = &lt;strong&gt;READ-COMMITTED&lt;/strong&gt;&lt;br /&gt;datadir=/var/lib/mysql&lt;br /&gt;socket=/var/lib/mysql/mysql.sock&lt;br /&gt;# Default to using old password format for compatibility with mysql 3.x&lt;br /&gt;# clients (those using the mysqlclient10 compatibility package).&lt;br /&gt;old_passwords=1&lt;br /&gt;&lt;br /&gt;[mysql.server]&lt;br /&gt;user=mysql&lt;br /&gt;basedir=/var/lib&lt;br /&gt;&lt;br /&gt;[mysqld_safe]&lt;br /&gt;err-log=/var/log/mysqld.log&lt;br /&gt;pid-file=/var/run/mysqld/mysqld.pid&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then restarted mysql so that the new setting would take effect:&lt;br /&gt;&lt;br /&gt;[root@cc ~]# service mysqld stop&lt;br /&gt;&lt;em&gt;Stopping MySQL: [ OK ]&lt;/em&gt;&lt;br /&gt;&lt;em&gt;root@cc ~]# service mysqld start&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Starting MySQL: [ OK ]&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then, unnecessarily as it turned out, downloaded and installed jboss-3.0.8_tomcat-4.1.24.zip (with integrated Tomcat 4.1.24)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then downloaded and installed ant using the command shown below:&lt;br /&gt;&lt;br /&gt;cd /usr/local&lt;br /&gt;lynx http://ant.apache.org/bindownload.cgi&lt;br /&gt;tar -xzvf apache-ant-1.6.5-bin.tar.gz&lt;br /&gt;rm apache-ant-1.6.5-bin.tar.gz&lt;br /&gt;&lt;em&gt;rm: remove regular file `apache-ant-1.6.5-bin.tar.gz'? y&lt;/em&gt;&lt;br /&gt;ln -s apache-ant-1.6.5 ant&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then set up the path for ant by editing /etc/profile as follows:&lt;br /&gt;&lt;br /&gt;[root@cc local]# nano /etc/profile&lt;br /&gt;Append to the end of the file:&lt;br /&gt;&lt;br /&gt;PATH=$PATH:ANT_HOME/binANT_HOME=/usr/local/ant; export ANT_HOME&lt;br /&gt;PATH=${PATH}:${ANT_HOME}/bin&lt;br /&gt;export PATH&lt;br /&gt;&lt;br /&gt;I then logged out and back in again for the path to take effect and checked that ant was accessible:&lt;br /&gt;&lt;br /&gt;[root@cc ~]# ant -version&lt;br /&gt;&lt;em&gt;Apache Ant version 1.6.5 compiled on June 2 2005&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then downloaded and installed LAMS (something I should have done at the very beginning!) as follows:&lt;br /&gt;&lt;br /&gt;From the root users home directory:&lt;br /&gt;&lt;br /&gt;lynx http://www.lamsfoundation.org/downloads/&lt;br /&gt;unzip redhat-lams-server1.0.1.zip&lt;br /&gt;cd redhat*/lams-package/lib&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then downloaded and installed the mysql connector, which would allow JBoss to talk to mysql:&lt;br /&gt;&lt;br /&gt;lynx http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-3.0.16-ga.tar.gz/from/pick&lt;br /&gt;tar -xzvf mysql-connector-java-3.0.16-ga.tar.gz&lt;br /&gt;rm mysql-connector-java-3.0.16-ga.tar.gz&lt;br /&gt;&lt;em&gt;remove regular file `mysql-connector-java-3.0.16-ga.tar.gz'? y&lt;/em&gt;&lt;br /&gt;cd mysql*&lt;br /&gt;mv mysql-connector-java-3.0.16-ga-bin.jar ../&lt;br /&gt;cd ..&lt;br /&gt;rm -rf mysql-connector-java-3.0.16-ga&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then logged on to mysql and tried to set up appropriate databases and privileges (Later on phpmyadmin turned out to be a MUCH better solution.) The next step was to move to the LAMS ant directory and try to edit build.xml. This turned out to be incredibly hard going and even when I was satisfied Tomcat would not start properly.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;iii) An Improved Approach to Installation&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This failure led me to look at the contents of the LAMS install directory carefully. I discovered that it actually contained an install script ready made for RedHat Enterprise Linux 3!&lt;br /&gt;&lt;br /&gt;On looking at this script (redhat_install.sh) I realised that most of the installation I had undertaken so far could have been achieved by running this script and that all the necessary pacakges (e.g. jboss, ant, sdk) had already been included in LAMS download!!&lt;br /&gt;&lt;br /&gt;The other interesting file turned out to be LAMS.SETTINGS - this was a simple text based configuration file that took all the work out of configuring build.xml!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I reinstalled the LAMS download to give me clean copies of the build.xml file etc.&lt;br /&gt;I downloaded and installed phpmyadmin as follows:&lt;br /&gt;&lt;br /&gt;lynx http://www.phpmyadmin.net/home_page/downloads.php#2.6.2-pl1&lt;br /&gt;tar -xzvf phpMyAdmin-2.6.2-pl1.tar.gz&lt;br /&gt;mv phpMyAdmin-2.6.2-pl1 phpmyadmin&lt;br /&gt;cd phpmyadmin&lt;br /&gt;&lt;br /&gt;I then made the changes shown in bold below to phpmyadmin/config.inc.php&lt;br /&gt;&lt;br /&gt;nano config.inc.php&lt;br /&gt;&lt;br /&gt;$cfg['Servers'][$i]['controluser'] = '&lt;strong&gt;root&lt;/strong&gt;';&lt;br /&gt;$cfg['Servers'][$i]['controlpass'] = '&lt;strong&gt;xxxx&lt;/strong&gt;';&lt;br /&gt;$cfg['Servers'][$i]['auth_type'] = 'config';&lt;br /&gt;$cfg['Servers'][$i]['user'] = '&lt;strong&gt;root&lt;/strong&gt;';&lt;br /&gt;cfg['Servers'][$i]['password'] = '&lt;strong&gt;xxxx&lt;/strong&gt;';&lt;br /&gt;&lt;br /&gt;I went to the webpage for phpmyadmin and created a database called lams.&lt;br /&gt;&lt;br /&gt;I gave to the mysql root user full privileges as shown below:&lt;br /&gt;&lt;br /&gt;User: root&lt;br /&gt;Host: %&lt;br /&gt;Type: global&lt;br /&gt;Privileges: ALL&lt;br /&gt;Grant: Yes&lt;br /&gt;&lt;br /&gt;I then set up a user called lams, with a password of yyyy and gave this user the following privileges on the lams database:&lt;br /&gt;&lt;br /&gt;User: lams&lt;br /&gt;Host: %&lt;br /&gt;Type: database-specific&lt;br /&gt;Privileges: ALL&lt;br /&gt;Grant: Yes&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then edited LAMS.SETTINGS and the result for my system is shown below:&lt;br /&gt;&lt;br /&gt;cat LAMS.SETTINGS&lt;br /&gt;# Check lams-package/ant/build.xml for a detailed explanation of these fields&lt;br /&gt;# or to setup advanced options&lt;br /&gt;&lt;br /&gt;LAMS_VERSION="1.0.1-yoichi"&lt;br /&gt;&lt;br /&gt;LAMS_HOME=/usr/local/lams/server1.0.1&lt;br /&gt;LAMS_UPLOADS=$LAMS_HOME/lamsdata&lt;br /&gt;LAMS_JBOSS_HOME=$LAMS_HOME/jboss&lt;br /&gt;&lt;br /&gt;#### LAMS Community Interaction&lt;br /&gt;LAMS_IS_ONLINE=false&lt;br /&gt;ORGNISATION_KEY=&lt;br /&gt;&lt;br /&gt;#### LAMS Admin User and Password&lt;br /&gt;&lt;br /&gt;LAMS_ADMIN_USER=lamsadmin&lt;br /&gt;LAMS_ADMIN_PASSWORD=&lt;strong&gt;zzzz&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;#### MySQL Database Details&lt;br /&gt;&lt;br /&gt;# Currently not being used&lt;br /&gt;#MYSQL_ALREADY_CONFIGURED=true&lt;br /&gt;&lt;br /&gt;MYSQL_HOME=/usr/share/mysql&lt;br /&gt;MYSQL_BINARIES_PATH=&lt;br /&gt;MYSQL_SERVICE_NAME=mysql&lt;br /&gt;&lt;br /&gt;LAMS_DB_NAME=&lt;strong&gt;lams &lt;/strong&gt;&lt;br /&gt;LAMS_DB_USER=&lt;strong&gt;lams&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;LAMS_DB_ROOT_PASSWORD=&lt;strong&gt;xxxx &lt;/strong&gt;&lt;br /&gt;LAMS_DB_PASSWORD=&lt;strong&gt;yyyy&lt;/strong&gt;&lt;br /&gt;LAMS_MYSQL_HOST=&lt;strong&gt;172.31.0.5&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;#### Configure the application server&lt;br /&gt;&lt;br /&gt;LAMS_TOMCAT_PORT=8080&lt;br /&gt;LAMS_CHAT_PORT=9800&lt;br /&gt;LAMS_EMAIL_ADDRESS=&lt;strong&gt;root@cc.bromley.ac.uk &lt;/strong&gt;&lt;br /&gt;LAMS_SMTP_SERVER=&lt;strong&gt;172.31.0.5 &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;LAMS_JBOSS_HOST=&lt;strong&gt;172.31.0.5&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;All the IP addresses used above are the internal IP addresses of the cc server inside our NAT firewall. The username and password pair for lams adminstration are used when you log into LAMS from the browser, so need careful consideration.&lt;br /&gt;&lt;br /&gt;I then ran the ./redhat-install.sh script and accepted all the default options apart from choosing to skip the MySQL setup.&lt;br /&gt;&lt;br /&gt;This checked that I had all the necessary packages installed, installed the server into /usr/local/lams/server1.0.1, built and started the server automatically.&lt;br /&gt;&lt;br /&gt;After a while a message appeared to the effect that the server had started and I was able to hit CTRL+C to exit the script. I then had to wait quite a while during which time a screen full of cryptic messages appeared until eventually after numerous refreshes of the browser the LAMS login screen appeared. (Hallelujah :-)))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Before rebuilding LAMS after making changes to the LAMS.SETTINGS file I found it necessary to:&lt;br /&gt;&lt;br /&gt;1) Use phpmyadmin to drop all tables in the lams database.&lt;br /&gt;2) Completely remove the directory /usr/local/lams/server1.0.1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;iv) Getting Apache to talk to JBoss&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;LAMS was now fully up and running on the cc server on port 8080 but we could only access it externally because our staff and student network proxy servers only allow access via ports 80 and 443 to "external" servers! To get round this I set up Apache to talk to JBoss using mod_jk2 so that a URL in the format:&lt;br /&gt;&lt;br /&gt;http://cc.bromley.ac.uk/lams&lt;br /&gt;&lt;br /&gt;automatically provided access to:&lt;br /&gt;&lt;br /&gt;http://cd.bromley.ac.uk:8080/lams&lt;br /&gt;&lt;br /&gt;I tried a number of different ways of getting this to work and found much of the documentation available on the Internet on this subject decidedly confusing. (I managed to miss finding the Solaris instructions in the LAMS documentation zip until after writing this guide, mainly due to the Windows unzip tool I was using truncating the filenames.)&lt;br /&gt;&lt;br /&gt;The steps I took that actually produced a working solution are outlined below:&lt;br /&gt;&lt;br /&gt;Using ftp I copied mod_jk2.so from Fedora Core 3 /etc/httpd/modules into CentOS 4&lt;br /&gt;/etc/httpd/modules and made sure its permissions were 755.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then created jk2.conf in /etc/httpd/conf.d as shown below:&lt;br /&gt;&lt;br /&gt;cd /etc/httpd/conf.d&lt;br /&gt;nano jk2.conf&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Mod_jk2 allows the Apache Web server to connect to application&lt;br /&gt;# servers using the AJP protocol. This allows web applications to&lt;br /&gt;# be integrated seamlessly into your Apache server's URI space and&lt;br /&gt;# utilize Apache features such as SSL processing.&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;LoadModule jk2_module modules/mod_jk2.so&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Mod_jk2 is configured in /etc/httpd/conf/workers2.properties&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then created workers2.properties in /etc/httpd/conf as shown below:&lt;br /&gt;&lt;br /&gt;cd /etc/httpd/conf&lt;br /&gt;nano workers2.properties&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;[logger.file:0]&lt;br /&gt;level=WARN&lt;br /&gt;file=${serverRoot}/logs/jk2.log&lt;br /&gt;&lt;br /&gt;[shm]&lt;br /&gt;info=Defines the shared memory&lt;br /&gt;file=${serverRoot}/logs/jk2.shm&lt;br /&gt;size=1000000&lt;br /&gt;debug=0&lt;br /&gt;disabled=0&lt;br /&gt;&lt;br /&gt;[channel.socket:localhost:8009]&lt;br /&gt;info=Defines the local Tomcat server&lt;br /&gt;tomcatId=jvm1&lt;br /&gt;host=localhost&lt;br /&gt;port=8009&lt;br /&gt;&lt;br /&gt;[ajp13:localhost:8009]&lt;br /&gt;info=Defines the default ajp13 worker&lt;br /&gt;channel=channel.socket:localhost:8009&lt;br /&gt;&lt;br /&gt;[status:status]&lt;br /&gt;info=Defines the status worker&lt;br /&gt;&lt;br /&gt;[uri:/jkstatus/*]&lt;br /&gt;group=status:status&lt;br /&gt;&lt;br /&gt;[uri:/scheduler/*]&lt;br /&gt;context=/scheduler&lt;br /&gt;&lt;br /&gt;[uri:/lams/*]&lt;br /&gt;context=/lams&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I then edited the JBoss server.xml file to modify the default engine container to include the jmvRoute attribute. The engine container I used (with opening and closing tags removed in order to display properly in this blog) is shown below:&lt;br /&gt;&lt;br /&gt;nano /usr/local/lams/server1.0.1/jboss/tomcat-4.1.x/conf/server.xml&lt;br /&gt;&lt;br /&gt;Engine name="Standalone" defaultHost="localhost" debug="0" &lt;strong&gt;jmvRoute="jvm1&lt;/strong&gt;"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then stopped LAMS and edited the jk2.properties file, which was otherwise just comments:&lt;br /&gt;&lt;br /&gt;/etc/init.d/lams stop&lt;br /&gt;&lt;br /&gt;nano /usr/local/lams/server1.0.1/jboss/tomcat-4.1.x/conf/jk2.properties&lt;br /&gt;&lt;br /&gt;and appended the line shown below to the end of this file:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;channelSocket.port=8009&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then restarted Apache and started LAMS:&lt;br /&gt;&lt;br /&gt;service httpd restart&lt;br /&gt;/etc/init.d/lams start&lt;br /&gt;&lt;br /&gt;I was delighted to find that when I visited http://cc.bromley.ac.uk/lams it worked :-) What's more it also worked from our staff and student network behind the proxy servers :-))&lt;br /&gt;&lt;br /&gt;I subsequently installed a copy of Moodle 1.5 on the same server and it is running happily alongside LAMS.&lt;br /&gt;&lt;br /&gt;&lt;a href="#menu"&gt;Return to Menu&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name="two"&gt;&lt;/a&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="FONT-WEIGHT: bold"&gt;2) LAMS 1.0.2 installation procedure&lt;/span&gt; (February 2006)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Today I undertook a fresh installation of LAMS 1.0.2 from the root account on a CentOS 4 Linux server.&lt;br /&gt;&lt;br /&gt;The first step was to download and install the jdk.&lt;br /&gt;&lt;br /&gt;lynx http://java.sun.com/j2se/1.4.2/download.html&lt;br /&gt;&lt;br /&gt;&lt;span style="COLOR: rgb(204,102,0)"&gt;Note that you need the 1.4 JDK NOT the 1.5 jdk for LAMS 1.0.2.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;chmod 755 j2sdk*&lt;br /&gt;&lt;br /&gt;./j2sdk-1_4_2_10-linux-i586-rpm.bin&lt;br /&gt;&lt;br /&gt;rpm -ivh j2sdk-1_4_2_10-linux-i586.rpm&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Once the jdk was installed I added the appropriate paths to /etc/profile:&lt;br /&gt;&lt;br /&gt;Append to /etc/profile:&lt;br /&gt;&lt;br /&gt;JAVA_HOME=/usr/java/j2sdk1.4.2_10&lt;br /&gt;export JAVA_HOME&lt;br /&gt;PATH=${PATH}:${JAVA_HOME}/bin&lt;br /&gt;export PATH&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The next step was to configure MySQL. To be on the safe side I completely removed the existing MySQL installation and re-installed a clean copy using yum. &lt;span style="COLOR: rgb(204,102,0)"&gt;(Don't re-install MySQL if you already have a copy of Moodle running on the same server!)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I set MySQL to start automatically at boot as follows:&lt;br /&gt;&lt;br /&gt;chkconfig mysqld on&lt;br /&gt;&lt;em&gt;chkconfig --list grep mysqld&lt;br /&gt;mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;I also set the READ COMMITTED option in the MySQL configuration file:&lt;br /&gt;&lt;br /&gt;pico /etc/my.cnf&lt;br /&gt;&lt;br /&gt;[mysqld]&lt;br /&gt;transaction-isolation = READ-COMMITTED&lt;br /&gt;datadir=/var/lib/mysql&lt;br /&gt;socket=/var/lib/mysql/mysql.sock&lt;br /&gt;# Default to using old password format for compatibility with mysql 3.x&lt;br /&gt;# clients (those using the mysqlclient10 compatibility package).&lt;br /&gt;old_passwords=1&lt;br /&gt;&lt;br /&gt;[mysql.server]&lt;br /&gt;user=mysql&lt;br /&gt;basedir=/var/lib&lt;br /&gt;&lt;br /&gt;[mysqld_safe]&lt;br /&gt;err-log=/var/log/mysqld.log&lt;br /&gt;pid-file=/var/run/mysqld/mysqld.pid&lt;br /&gt;&lt;br /&gt;I then started MySQL:&lt;br /&gt;&lt;br /&gt;service mysqld start&lt;br /&gt;&lt;br /&gt;I logged on to mysql as root using the following command:&lt;br /&gt;&lt;br /&gt;mysql -u root -p&lt;br /&gt;&lt;br /&gt;The root password was set as follows:&lt;br /&gt;&lt;br /&gt;mysql&gt; set password = password("XXXX");&lt;br /&gt;&lt;br /&gt;quit&lt;br /&gt;&lt;br /&gt;Where XXXX represents the new password&lt;br /&gt;&lt;br /&gt;I initially downloaded and installed phpMyAdmin 2.7.0 but could not get it to work&lt;br /&gt;properly with MYSQL 4.1 so downloaded and installed phpMyAdmin-2.6.4-pl4 instead.&lt;br /&gt;&lt;br /&gt;I downloaded and installed phpmyadmin as follows:&lt;br /&gt;&lt;br /&gt;cd /var/www/html&lt;br /&gt;lynx http://www.phpmyadmin.net/home_page/downloads.php#2.6.2-pl4&lt;br /&gt;tar -xzvf phpMyAdmin-2.6.2-pl4.tar.gz&lt;br /&gt;mv phpMyAdmin-2.6.2-pl4 phpmyadmin&lt;br /&gt;cd phpmyadmin&lt;br /&gt;&lt;br /&gt;I then made the changes shown in bold below to phpmyadmin/config.inc.php&lt;br /&gt;&lt;br /&gt;nano config.inc.php&lt;br /&gt;&lt;br /&gt;$cfg['Servers'][$i]['controluser'] = '&lt;strong&gt;root&lt;/strong&gt;';&lt;br /&gt;$cfg['Servers'][$i]['controlpass'] = '&lt;strong&gt;XXXX&lt;/strong&gt;';&lt;br /&gt;$cfg['Servers'][$i]['auth_type'] = 'config';&lt;br /&gt;$cfg['Servers'][$i]['user'] = '&lt;strong&gt;root&lt;/strong&gt;';&lt;br /&gt;cfg['Servers'][$i]['password'] = '&lt;strong&gt;XXXX&lt;/strong&gt;';&lt;br /&gt;&lt;br /&gt;Where XXXX represents the root password for MySQL.&lt;br /&gt;&lt;br /&gt;I used the browser to go to the web page for phpmyadmin (http://cc.bromley.ac.uk/phpmyamdin) and gave to the mysql root user full privileges as shown below:&lt;br /&gt;&lt;br /&gt;User: root&lt;br /&gt;Host: %&lt;br /&gt;Type: global&lt;br /&gt;Privileges: ALL&lt;br /&gt;Grant: Yes&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="COLOR: rgb(204,102,0)"&gt;(Note that with LAMS 1.0.2 it was not necessary to create the LAMS database using phpMyAdmin as the LAMS installer now takes care of this. It is a good idea to password protect access to phpMyAdmin using a .htaccess file.)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I then went on to download and install LAMS as follows:&lt;br /&gt;&lt;br /&gt;cd /home&lt;br /&gt;&lt;br /&gt;lynx http://lamscommunity.org/lams-server1.0.2.zip&lt;br /&gt;&lt;br /&gt;unzip lams*&lt;br /&gt;&lt;br /&gt;cd lams-server1.0.2/config&lt;br /&gt;&lt;br /&gt;I edited the lams.conf file to include the correct path for JAVA_HOME as follows:&lt;br /&gt;&lt;br /&gt;pico lams.conf&lt;br /&gt;&lt;br /&gt;## LAMS Server 1.0.2 - Used by the init script&lt;br /&gt;export LAMS_HOME=/usr/local/lams/&lt;br /&gt;export LAMS_VERSION=1.0&lt;br /&gt;export JBOSS_HOME=/usr/local/lams/jboss&lt;br /&gt;export JAVA_HOME="/usr/java/j2sdk1.4.2_10/"&lt;br /&gt;export PATH="$JAVA_HOME/bin:$PATH"&lt;br /&gt;&lt;br /&gt;I created the lams directory and copied over the JBOSS files:&lt;br /&gt;&lt;br /&gt;mkdir /usr/local/lams&lt;br /&gt;&lt;br /&gt;cp -r /home/lams-server1.0.2/jboss /usr/local/lams&lt;br /&gt;&lt;br /&gt;Now I created the jboss user and made that user the owner and group owner of the jboss directory:&lt;br /&gt;&lt;br /&gt;useradd jboss&lt;br /&gt;&lt;br /&gt;chown jboss:jboss /usr/local/lams/jboss&lt;br /&gt;&lt;br /&gt;chmod 755 /usr/local/lams/jboss/bin/*&lt;br /&gt;&lt;br /&gt;I then edited the file build.properties as shown below:&lt;br /&gt;&lt;br /&gt;cd /home/lams-server1.0.2/lams-package/ant&lt;br /&gt;&lt;br /&gt;pico build.properties&lt;br /&gt;&lt;br /&gt;# Properties file for ant install for LAMS&lt;br /&gt;#&lt;br /&gt;# NOTE: Installation platform is auto-detected&lt;br /&gt;#&lt;br /&gt;# ===============================================&lt;br /&gt;# JBoss location for UNIX&lt;br /&gt;LAMS_JBOSS_HOME_UNIX=/usr/local/lams/jboss&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# LAMS temp data directory for UNIX&lt;br /&gt;LAMS_HOME_UNIX=/usr/local/lams&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# JBoss location for Windows&lt;br /&gt;LAMS_JBOSS_HOME_WINDOWS=D:/jboss-3.0.8_tomcat-4.1.24&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# LAMS temp data directory for Windows&lt;br /&gt;LAMS_HOME_WINDOWS=D:/home/lams&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# Tell Ant the MySQL db root password. That is what&lt;br /&gt;# you have set when you installed MySQL.&lt;br /&gt;# This is required only if you run "ant db-prep-only&lt;br /&gt;LAMS_DB_ROOT_PASSWORD=&lt;strong&gt;XXXX&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# Tell Ant the hostname of the MySQL server that&lt;br /&gt;# should be put in the MySQL grant able.&lt;br /&gt;# MySQL seems unhappy with just 'localhost' or '%'&lt;br /&gt;# in the grant table, in order to be able to connect&lt;br /&gt;# from a client on the server itself.&lt;br /&gt;# You can use either the hostname or the IP address,&lt;br /&gt;# that is in the server's /etc/host file.&lt;br /&gt;LAMS_MYSQL_HOST=&lt;strong&gt;172.31.0.5&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# Tell Ant the hostname of the LAMS server that&lt;br /&gt;# should be put in the MySQL grant table.&lt;br /&gt;#&lt;br /&gt;# If the same server is used for both LAMS and MySQL,&lt;br /&gt;# set this to "localhost".&lt;br /&gt;#&lt;br /&gt;# If LAMS server connects from another server and&lt;br /&gt;# if it can only connect behind a firewall and with&lt;br /&gt;# DNS settings as below:&lt;br /&gt;#&lt;br /&gt;# External IP-Address: 137.111.132.34&lt;br /&gt;# Internal Hostname: b1600-s0.lib.mq.edu.au&lt;br /&gt;# internal IP-Address: 192.168.1.30&lt;br /&gt;#&lt;br /&gt;# then this value must be set with the internal address.&lt;br /&gt;# You can use either 192.168.1.30, b1600-s0 or&lt;br /&gt;# b1600-s0.lib.mq.edu.au.&lt;br /&gt;LAMS_JBOSS_HOST=localhost&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# The name of the LAMS database name&lt;br /&gt;# The default is "lams". Ant will create the database&lt;br /&gt;# if it did not exist. If it existed, it will be emptied.&lt;br /&gt;# You may change this if you have more than one instance&lt;br /&gt;# of LAMS running on the same instance of MySQL.&lt;br /&gt;LAMS_DB_NAME=lams&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# The userid for the LAMS database.&lt;br /&gt;# The default is "lams".&lt;br /&gt;# "ant prepare-db" will set the userid to this value.&lt;br /&gt;# You may change this value&lt;br /&gt;LAMS_DB_USER=lams&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# The password for the userid for the LAMS database.&lt;br /&gt;# "ant prepare-db" will set the password to this value.&lt;br /&gt;# You must change this value for security reasons&lt;br /&gt;LAMS_DB_PASSWORD=&lt;strong&gt;XXXX&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# The MySQL connector jar file name.&lt;br /&gt;# This is to establish the connection for&lt;br /&gt;# Ant tasks to run some SQL scripts&lt;br /&gt;# This file must be placed inside the /lib&lt;br /&gt;MYSQL_CONNECTOR_JAR_FILE=mysql-connector-java-3.1.11-bin.jar&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# JBoss Web server port number.&lt;br /&gt;# JBoss normally uses 8080&lt;br /&gt;# You may change this value&lt;br /&gt;LAMS_TOMCAT_PORT=8080&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# JBoss Web server (Tomcat) request processor parameters.&lt;br /&gt;# You may change these values. (Refer to Tomcat manual)&lt;br /&gt;# These values affect LAMS performance greatly&lt;br /&gt;MIN_PROCESSOR=5&lt;br /&gt;MIN_PROCESSOR=75&lt;br /&gt;ACCESS_COUNT=100&lt;br /&gt;ENABLE_LOOKUP=false&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# JBoss mod_jk connector (Tomcat) request processor parameters.&lt;br /&gt;# You may change these values. (Refer to Tomcat manual)&lt;br /&gt;JK_MIN_PROCESSOR=5&lt;br /&gt;JK_MIN_PROCESSOR=75&lt;br /&gt;JK_ACCESS_COUNT=100&lt;br /&gt;JK_ENABLE_LOOKUP=false&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# Certain Tools in LAMS send emails.&lt;br /&gt;# You must set these parameters for your site,&lt;br /&gt;# although LAMS still functions even if this is not set.&lt;br /&gt;LAMS_ADMIN_EMAIL_ADDRESS=&lt;strong&gt;root@cc.bromley.ac.uk&lt;/strong&gt;&lt;br /&gt;LAMS_SMTP_SERVER=&lt;strong&gt;172.31.0.5&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# The port number where the lams chat server&lt;br /&gt;# would be listening. In case you are behind a firewall you have to&lt;br /&gt;# open this port for commucnication&lt;br /&gt;LAMS_CHAT_PORT=9800&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# LAMS superuser userid. "admin" is reserved and cannot be used&lt;br /&gt;LAMS_ADMIN_USER=root&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# Password for the LAMS superuser "root".&lt;br /&gt;# "ant install" or "ant conf-only" will register it&lt;br /&gt;# with LAMS database.&lt;br /&gt;LAMS_ADMIN_PASSWORD=&lt;strong&gt;xxxxxxxxxxxxx&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# MySQL connection pool size.&lt;br /&gt;# You may change these values if you need more connections.&lt;br /&gt;# NOTE: You have to also increase MySQL max_connections if&lt;br /&gt;# MYSQL_MAX_POOL_SIZE exceeds the config paramter.&lt;br /&gt;# @see http://dev.mysql.com/doc/mysql/en/cj-general-j2ee-concepts.html&lt;br /&gt;MYSQL_MIN_POOL_SIZE=10&lt;br /&gt;MYSQL_MAX_POOL_SIZE=100&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# JBoss JVM memory sizes in MB.&lt;br /&gt;# Eg. if you can give LAMS 1GB, set max to 512MB.&lt;br /&gt;# because the actual memory size can grow twice as much.&lt;br /&gt;# Setting min=max will reduce overhead in heap management.&lt;br /&gt;JVM_MIN_HEAP=256&lt;br /&gt;JVM_MAX_HEAP=256&lt;br /&gt;&lt;br /&gt;# ===============================================&lt;br /&gt;# LAMS log level&lt;br /&gt;# Values are: ERROR,DEBUG,INFO,WARN&lt;br /&gt;# You may change this value.&lt;br /&gt;LOG_LEVEL=ERROR&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then edited /etc/profile to add the path for ANT:&lt;br /&gt;&lt;br /&gt;pico /etc/profile&lt;br /&gt;&lt;br /&gt;and appended the following text:&lt;br /&gt;&lt;br /&gt;ANT_HOME=/home/lams-server1.0.2/apache-ant&lt;br /&gt;export PATH=$PATH:$ANT_HOME/bin&lt;br /&gt;&lt;br /&gt;It was now time to get ANT to prepare the database:&lt;br /&gt;&lt;br /&gt;chmod 755 /home/lams-server1.0.2/apache-ant/bin/ant&lt;br /&gt;&lt;br /&gt;cd /home/lams-server1.0.2/lams-package/ant&lt;br /&gt;&lt;br /&gt;ant prepare-db&lt;br /&gt;&lt;em&gt;Buildfile: build.xml&lt;br /&gt;[echo] it is unix&lt;br /&gt;[echo] jboss home is: /usr/local/lams/jboss&lt;br /&gt;[echo] LAMS home is: /usr/local/lams&lt;br /&gt;&lt;br /&gt;prepare-db:&lt;br /&gt;[echo] it is unix&lt;br /&gt;[echo] jboss home is: /usr/local/lams/jboss&lt;br /&gt;[echo] LAMS home is: /usr/local/lams&lt;br /&gt;&lt;br /&gt;_prep_db:&lt;br /&gt;[echo] This creates the database and sets username/password&lt;br /&gt;[echo] mysql.classpath=/home/lams-server1.0.2/lams-package/lib/mysql-connector-java-3.1.11-bin.jar&lt;br /&gt;[echo] url=jdbc:mysql://172.31.0.5/mysql&lt;br /&gt;[echo] userid=root&lt;br /&gt;[echo] password=XXXX&lt;br /&gt;[sql] Executing commands&lt;br /&gt;[sql] 18 of 18 SQL statements executed successfully&lt;br /&gt;&lt;br /&gt;BUILD SUCCESSFUL&lt;br /&gt;Total time: 2 seconds&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;ant install&lt;br /&gt;&lt;br /&gt;ant install also ran successfully:&lt;br /&gt;&lt;em&gt;BUILD SUCCESSFUL&lt;br /&gt;Total time: 13 seconds&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;I then set up LAMS so that it started automatically on boot:&lt;br /&gt;&lt;br /&gt;cd /home/lams*/config&lt;br /&gt;&lt;br /&gt;chmod 755 lams&lt;br /&gt;&lt;br /&gt;cp lams /etc/init.d&lt;br /&gt;&lt;br /&gt;cp lams.conf /etc&lt;br /&gt;&lt;br /&gt;chkconfig lams on&lt;br /&gt;&lt;br /&gt;service lams start&lt;br /&gt;&lt;br /&gt;LAMS took a little while to start up&lt;br /&gt;&lt;br /&gt;On visting http://cc.bromley.ac.uk:8080/lams/ the login page was available.&lt;br /&gt;&lt;br /&gt;LAMS was now fully up and running on the cc server on port 8080 but we could only access it externally because our staff and student network proxy servers only allow access via ports 80 and 443 to "external" servers! To get round this I set up Apache to talk to JBoss using mod_jk2 so that a URL in the format:&lt;br /&gt;&lt;br /&gt;http://cc.bromley.ac.uk/lams&lt;br /&gt;&lt;br /&gt;automatically provided access to:&lt;br /&gt;&lt;br /&gt;http://cd.bromley.ac.uk:8080/lams&lt;br /&gt;&lt;br /&gt;The steps I took are outlined below:&lt;br /&gt;&lt;br /&gt;Using ftp I copied mod_jk2.so from Fedora Core 3 /etc/httpd/modules into CentOS 4&lt;br /&gt;/etc/httpd/modules and made sure its permissions were 755.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then created jk2.conf in /etc/httpd/conf.d as shown below:&lt;br /&gt;&lt;br /&gt;cd /etc/httpd/conf.d&lt;br /&gt;nano jk2.conf&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Mod_jk2 allows the Apache Web server to connect to application&lt;br /&gt;# servers using the AJP protocol. This allows web applications to&lt;br /&gt;# be integrated seamlessly into your Apache server's URI space and&lt;br /&gt;# utilize Apache features such as SSL processing.&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;LoadModule jk2_module modules/mod_jk2.so&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Mod_jk2 is configured in /etc/httpd/conf/workers2.properties&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then created workers2.properties in /etc/httpd/conf as shown below:&lt;br /&gt;&lt;br /&gt;cd /etc/httpd/conf&lt;br /&gt;nano workers2.properties&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;[logger.file:0]&lt;br /&gt;level=WARN&lt;br /&gt;file=${serverRoot}/logs/jk2.log&lt;br /&gt;&lt;br /&gt;[shm]&lt;br /&gt;info=Defines the shared memory&lt;br /&gt;file=${serverRoot}/logs/jk2.shm&lt;br /&gt;size=1000000&lt;br /&gt;debug=0&lt;br /&gt;disabled=0&lt;br /&gt;&lt;br /&gt;[channel.socket:localhost:8009]&lt;br /&gt;info=Defines the local Tomcat server&lt;br /&gt;tomcatId=jvm1&lt;br /&gt;host=localhost&lt;br /&gt;port=8009&lt;br /&gt;&lt;br /&gt;[ajp13:localhost:8009]&lt;br /&gt;info=Defines the default ajp13 worker&lt;br /&gt;channel=channel.socket:localhost:8009&lt;br /&gt;&lt;br /&gt;[status:status]&lt;br /&gt;info=Defines the status worker&lt;br /&gt;&lt;br /&gt;[uri:/jkstatus/*]&lt;br /&gt;group=status:status&lt;br /&gt;&lt;br /&gt;[uri:/scheduler/*]&lt;br /&gt;context=/scheduler&lt;br /&gt;&lt;br /&gt;[uri:/lams/*]&lt;br /&gt;context=/lams&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I then edited the JBoss server.xml file to modify the default engine container to include the jmvRoute attribute. The engine container I used (with opening and closing tags removed in order to display properly in this blog) is shown below:&lt;br /&gt;&lt;br /&gt;nano /usr/local/lams/jboss/tomcat-4.1.x/conf/server.xml&lt;br /&gt;&lt;br /&gt;Engine name="Standalone" defaultHost="localhost" debug="0" &lt;strong&gt;jmvRoute="jvm1&lt;/strong&gt;"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then stopped LAMS and edited the jk2.properties file, which was otherwise just comments:&lt;br /&gt;&lt;br /&gt;service lams stop&lt;br /&gt;&lt;br /&gt;nano /usr/local/lams/jboss/tomcat-4.1.x/conf/jk2.properties&lt;br /&gt;&lt;br /&gt;and appended the line shown below to the end of this file:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;channelSocket.port=8009&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I then restarted Apache and started LAMS:&lt;br /&gt;&lt;br /&gt;service httpd restart&lt;br /&gt;service lams start&lt;br /&gt;&lt;br /&gt;I was delighted to find that when I visited http://cc.bromley.ac.uk/lams it worked :-) What's more it also worked from our staff and student network behind the proxy servers :-))&lt;br /&gt;&lt;br /&gt;The next step was to configure Moodle on vle.bromley.ac.uk to include LAMS as an activity.&lt;br /&gt;&lt;br /&gt;The following website proved invaluable in this and the instructions were clear, easy to follow and worked first time :-)))&lt;br /&gt;&lt;br /&gt;&lt;a href="http://lamsfoundation.org/integration/moodle/"&gt;http://lamsfoundation.org/integration/moodle/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="#menu"&gt;Return to Menu&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name="three"&gt;&lt;/a&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="FONT-WEIGHT: bold"&gt;3) Using LAMS with DSpace and Apache along with mod_jk2&lt;/span&gt; (February 2006)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;I have just done an install of LAMS on our VLE server, which already has a copy of Moodle and DSpace running on it. If you are interested in DSpace installation please &lt;a href="http://linuxtraining.org.uk/blogger.html"&gt;select this link&lt;/a&gt;. DSpace uses its own copy of Tomcat so I needed to get multiple instances of Tomcat, accessible via a single Apache server.&lt;br /&gt;&lt;br /&gt;Below are the instructions for how I got LAMS JBOSS Tomcat running on the same server (CentOS 4) as DSpace Tomcat . Both Tomcat servers are now accessible on port 80 via Apache and mod_jk2.&lt;br /&gt;&lt;br /&gt;&lt;span style="COLOR: rgb(204,102,0)"&gt;Note that you need the 1.4 JDK NOT the 1.5 jdk for LAMS 1.0.2. I ran into trouble of installing LAMS on our VLE server, which already had the the 1.5 JDK pre-installed and I found I could not build the LAMS application. I had to download and install the 1.4.2 JDK as well and subsequently had to add appropriate pathing information for the 1.4 JDK to run.sh, ant and lams.conf. To help anyone else who makes the same mistake the error messages that appeared were:&lt;br /&gt;&lt;br /&gt;[1] Done ./run.sh&lt;br /&gt;[root@vle bin]#&lt;br /&gt;================================================================================&lt;br /&gt;&lt;br /&gt;JBoss Bootstrap Environment&lt;br /&gt;&lt;br /&gt;JBOSS_HOME: /usr/local/lams/jboss&lt;br /&gt;&lt;br /&gt;JAVA: /usr/java/jdk/bin/java&lt;br /&gt;&lt;br /&gt;JAVA_OPTS: -server -Xms256m -Xmx256m -Dprogram.name=run.sh&lt;br /&gt;&lt;br /&gt;CLASSPATH: /usr/local/lams/jboss/bin/run.jar:/usr/java/jdk/lib/tools.jar&lt;br /&gt;&lt;br /&gt;================================================================================&lt;br /&gt;&lt;br /&gt;06:30:53,332 INFO [Server] JBoss Release: JBoss-3.0.8 CVSTag=JBoss_3_0_8&lt;br /&gt;06:30:53,339 INFO [Server] Home Dir: /usr/local/lams/jboss&lt;br /&gt;06:30:53,339 INFO [Server] Home URL: file:/usr/local/lams/jboss/&lt;br /&gt;06:30:53,339 INFO [Server] Library URL: file:/usr/local/lams/jboss/lib/&lt;br /&gt;06:30:53,340 INFO [Server] Patch URL: null&lt;br /&gt;06:30:53,340 INFO [Server] Server Name: default&lt;br /&gt;06:30:53,340 INFO [Server] Server Home Dir:&lt;br /&gt;/usr/local/lams/jboss/server/default&lt;br /&gt;06:30:53,341 INFO [Server] Server Home URL:&lt;br /&gt;file:/usr/local/lams/jboss/server/default/&lt;br /&gt;06:30:53,341 INFO [Server] Server Data Dir:&lt;br /&gt;/usr/local/lams/jboss/server/default/db&lt;br /&gt;06:30:53,341 INFO [Server] Server Temp Dir:&lt;br /&gt;/usr/local/lams/jboss/server/default/tmp&lt;br /&gt;06:30:53,341 INFO [Server] Server Config URL:&lt;br /&gt;file:/usr/local/lams/jboss/server/default/conf/&lt;br /&gt;06:30:53,342 INFO [Server] Server Library URL:&lt;br /&gt;file:/usr/local/lams/jboss/server/default/lib/&lt;br /&gt;06:30:53,342 INFO [Server] Root Deployemnt Filename: jboss-service.xml&lt;br /&gt;06:30:53,344 INFO [Server] Starting General Purpose Architecture (GPA)...&lt;br /&gt;06:30:53,363 ERROR [Server] start failed&lt;br /&gt;javax.management.InstanceNotFoundException:&lt;br /&gt;JMImplementation:service=LoaderRepository,name=Default&lt;br /&gt;at&lt;br /&gt;com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)&lt;br /&gt;at&lt;br /&gt;com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:804)&lt;br /&gt;at&lt;br /&gt;com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)&lt;br /&gt;at&lt;br /&gt;org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:440)&lt;br /&gt;at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:261)&lt;br /&gt;at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)&lt;br /&gt;at org.jboss.Main.boot(Main.java:148)&lt;br /&gt;at org.jboss.Main$1.run(Main.java:381)&lt;br /&gt;at java.lang.Thread.run(Thread.java:595)&lt;br /&gt;javax.management.InstanceNotFoundException:&lt;br /&gt;JMImplementation:service=LoaderRepository,name=Default&lt;br /&gt;at&lt;br /&gt;com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)&lt;br /&gt;at&lt;br /&gt;com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:804)&lt;br /&gt;at&lt;br /&gt;com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)&lt;br /&gt;at&lt;br /&gt;org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:440)&lt;br /&gt;at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:261)&lt;br /&gt;at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)&lt;br /&gt;at org.jboss.Main.boot(Main.java:148)&lt;br /&gt;at org.jboss.Main$1.run(Main.java:381)&lt;br /&gt;at java.lang.Thread.run(Thread.java:595)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The DSpace installation of Tomcat was already running on the VLE server using the default ports.&lt;br /&gt;&lt;br /&gt;Before building LAMS I edited the file build.properties as configured in sectiion of this blog to change the Tomcat port from 8080 to 8081.&lt;br /&gt;&lt;br /&gt;Shown below are the workers2.properties and the JBOSS Tomcat server.xml file that I successfully used:&lt;br /&gt;&lt;br /&gt;cd /etc/httpd/conf&lt;br /&gt;&lt;br /&gt;less workers2.properties&lt;br /&gt;&lt;br /&gt;[logger.file:0]&lt;br /&gt;level=WARN&lt;br /&gt;file=${serverRoot}/logs/jk2.log&lt;br /&gt;&lt;br /&gt;[shm]&lt;br /&gt;info=Defines the shared memory&lt;br /&gt;file=${serverRoot}/logs/jk2.shm&lt;br /&gt;size=1000000&lt;br /&gt;debug=0&lt;br /&gt;disabled=0&lt;br /&gt;&lt;br /&gt;[channel.socket:localhost:8009]&lt;br /&gt;info=Defines the DSpace Tomcat server&lt;br /&gt;host=localhost&lt;br /&gt;tomcatId=jvm1&lt;br /&gt;host=localhost&lt;br /&gt;port=8009&lt;br /&gt;&lt;br /&gt;[channel.socket:localhost:8010]&lt;br /&gt;info=Defines the LAMS Tomcat server&lt;br /&gt;host=localhost&lt;br /&gt;tomcatId=jvm2&lt;br /&gt;port=8010&lt;br /&gt;&lt;br /&gt;[ajp13:localhost:8009]&lt;br /&gt;info=Defines the DSpace ajp13 worker&lt;br /&gt;channel=channel.socket:localhost:8009&lt;br /&gt;&lt;br /&gt;[ajp13:localhost:8010]&lt;br /&gt;info=Defines the LAMS ajp13 worker&lt;br /&gt;channel=channel.socket:localhost:8010&lt;br /&gt;&lt;br /&gt;[status:status]&lt;br /&gt;info=Defines the status worker&lt;br /&gt;&lt;br /&gt;[uri:/jkstatus/*]&lt;br /&gt;group=status:status&lt;br /&gt;&lt;br /&gt;[uri:/scheduler/*]&lt;br /&gt;context=/scheduler&lt;br /&gt;&lt;br /&gt;[uri:/dspace/*]&lt;br /&gt;group=ajp13:localhost:8009&lt;br /&gt;&lt;br /&gt;[uri:/dspace-oai/*]&lt;br /&gt;group=ajp13:localhost:8009&lt;br /&gt;&lt;br /&gt;[uri:/lams/*]&lt;br /&gt;group=ajp13:localhost:8010&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In the /usr/local/lams/jboss/tomcat-4.1.x/conf/server.xml file I changed the port allocations to make sure that JBOSS Tomcat was not listening on the same ports as LAMS Tomcat.&lt;br /&gt;&lt;br /&gt;The lines I changed are shown in &lt;strong&gt;bold&lt;/strong&gt; below. I've missed out the xml tags as they will interfere with your viewing this blog.&lt;br /&gt;&lt;br /&gt;Server port="&lt;strong&gt;8006&lt;/strong&gt;" shutdown="SHUTDOWN" debug="0"&lt;br /&gt;&lt;br /&gt;Connector className="org.apache.coyote.tomcat4.CoyoteConnector"&lt;br /&gt;port="&lt;strong&gt;8081&lt;/strong&gt;" minProcessors="5" maxProcessors="75"&lt;br /&gt;enableLookups="true" redirectPort="8443"&lt;br /&gt;acceptCount="100" debug="0" connectionTimeout="20000"&lt;br /&gt;useURIValidationHack="false" disableUploadTimeout="true"&lt;br /&gt;&lt;br /&gt;Connector className="org.apache.coyote.tomcat4.CoyoteConnector"&lt;br /&gt;port="&lt;strong&gt;8010&lt;/strong&gt;" minProcessors="5" maxProcessors="75"&lt;br /&gt;enableLookups="true" redirectPort="8443"&lt;br /&gt;acceptCount="10" debug="0" connectionTimeout="0"&lt;br /&gt;useURIValidationHack="false"&lt;br /&gt;protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"&lt;br /&gt;&lt;br /&gt;Engine name="Standalone" defaultHost="localhost" debug="0"&lt;strong&gt; jvmRoute="jvm2&lt;/strong&gt;"&lt;br /&gt;&lt;br /&gt;On restarting Apache:&lt;br /&gt;Moodle was available on &lt;a href="http://vle.bromley.ac.uk/vle"&gt;http://vle.bromley.ac.uk/vle&lt;/a&gt;&lt;br /&gt;DSpace was available on &lt;a href="http://vle.bromley.ac.uk/dspace"&gt;http://vle.bromley.ac.uk/dspace&lt;/a&gt;&lt;br /&gt;LAMS was available on &lt;a href="http://vle.bromley.ac.uk/lams"&gt;http://vle.bromley.ac.uk/lams&lt;/a&gt;&lt;br /&gt;:-)))&lt;br /&gt;&lt;br /&gt;&lt;a href="#menu"&gt;Return to Menu&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;a name="four"&gt;&lt;/a&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="FONT-WEIGHT: bold"&gt;4) Sorting out 400, 403 and 404 errors&lt;/span&gt; (February 2006)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We've just been using LAMS from within Moodle and have encountered seemingly arbitary 403 error messages in one or more frames. After a number of refreshes/revists to the site these disappear.&lt;br /&gt;&lt;br /&gt;I found a fix for this on the &lt;a href="http://www.lamscommunity.org/dotlrn/clubs/technicalcommunity/forums/message-view?message_id=131850"&gt;LAMS Community Technical Forum&lt;/a&gt; on 22nd February and duplicate the solution that worked for me below:&lt;br /&gt;&lt;br /&gt;nano /usr/local/lams/jboss/server/default/conf/jboss-service.xml&lt;br /&gt;&lt;br /&gt;Locate the lines lines containing the named attributes DefaultCacheTimeout and DefaultCacheResolution and comment each line out separately using &lt;-- --&gt;&lt;br /&gt;&lt;br /&gt;Restart LAMS:&lt;br /&gt;&lt;br /&gt;service lams stop&lt;br /&gt;service lams start&lt;br /&gt;&lt;br /&gt;Hurray the 403 messages appear to have gone away :-)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I also had the following 400 and 404 errors, which went away once I closed the offending browser window and reselected the LAMS Learner link within Moodle.&lt;br /&gt;&lt;br /&gt;Initially when I clicked on the Open LAMS Learner link I got the following message:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;HTTP Status 400 - Invalid direct reference to form login page&lt;br /&gt;&lt;br /&gt;-----------------------------------------------------------&lt;br /&gt;&lt;br /&gt;type Status report&lt;br /&gt;&lt;br /&gt;message Invalid direct reference to form login page&lt;br /&gt;&lt;br /&gt;description The request sent by the client was syntactically incorrect (Invalid direct reference to form login page).&lt;br /&gt;&lt;br /&gt;-----------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Apache Tomcat/4.1.24-LE-jdk14&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;On refreshing the browser window I then got the following message:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;HTTP Status 404 - /lams/j_security_check&lt;br /&gt;&lt;br /&gt;-----------------------------------------------------------&lt;br /&gt;&lt;br /&gt;type Status report&lt;br /&gt;&lt;br /&gt;message /lams/j_security_check&lt;br /&gt;&lt;br /&gt;description The requested resource (/lams/j_security_check) is not available.&lt;/em&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;The solution was to download lams-valve.jar from &lt;a href="http://lamscommunity.org/dotlrn/clubs/technicalcommunity/forums/message-view?message_id=107037"&gt;here&lt;/a&gt; on the lamscommunity forum.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc6600;"&gt;(Note: I initially used Internet Explorer to download the above jar file and found it had downloaded lams-valve.jar.zip - just a matter of uploading this file to the Linux box and renaming it lams-valve.jar)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;I copied the downloaded lams-valve.jar to&lt;br /&gt;&lt;br /&gt;/usr/local/lams/jboss/server/default/lib&lt;br /&gt;&lt;br /&gt;On restarting LAMS and visting it from Moodle was well and the 400 and 404 error messages no longer appeared.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="#menu"&gt;Return to Menu&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name="five"&gt;&lt;/a&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="FONT-WEIGHT: bold"&gt;5) Moodle Lams Integration Error with config.php&lt;/span&gt; (May 2006)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Despite Moodle and LAMS integration appearing to work well, I noticed some error messages appearing in the Apache error_log file relating to LAMS: &lt;br /&gt;&lt;br /&gt;&lt;em&gt;[client 10.200.0.1] PHP Warning:  main(../../config.php): failed to open stream: No such file or directory in /home/bcvleuser/moodle/mod/lams/lib.php on line 4&lt;/em&gt;&lt;br /&gt; &lt;br /&gt;The solution was to modify /home/bcvleuser/moodle/mod/lams/lib.php to correctly define the path to Moodle's config.php script as follows:&lt;br /&gt; &lt;br /&gt;&lt;em&gt;/// Library of functions and constants for module lams&lt;br /&gt;&lt;strong&gt;include_once("/home/bcvleuser/moodle/config.php");&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Once I had modified lib.php the error went away :-)&lt;br /&gt;&lt;br /&gt;I have also noticed the following error messages in the Apache error_log file relating to mod_jk2 and LAMS:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;[error] channelSocket.receive(): Error receiving message body -1 11&lt;br /&gt;[error] workerEnv.processCallbacks() Error reading reply&lt;br /&gt;[error] ajp13.service() ajpGetReply recoverable error 120000&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;These seem to appear in the error_log whenever LAMS is called from Moodle. &lt;br /&gt;I have yet to find out the significance of these messsages!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="#menu"&gt;Return to Menu&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13634422-113977564193462008?l=lamsbromley.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13634422/posts/default/113977564193462008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13634422/posts/default/113977564193462008'/><link rel='alternate' type='text/html' href='http://lamsbromley.blogspot.com/2006/02/lams-10x-installation-procedure-on.html' title='LAMS 1.0.x installation procedure on CentOS 4'/><author><name>clive</name><uri>http://www.blogger.com/profile/04834932543873462481</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_q1s98Hsu7OI/SuLawcqhM5I/AAAAAAAAAAM/mv6_N0TRJtU/S220/f2.jpg'/></author></entry></feed>
