Forum Problems Installing LAMS: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Lams URL


 
Search: 

13: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Lams URL
In response to 12 03/15/07 11:33 AM
[ Reply | Forward ]
The problem was in the server name localhost against hilbert.mat.uc.pt.

Now I have:

---In "lams.properties---

# The port through which you want jboss to run
LAMS_PORT=8080

# The url you intend to use to run LAMS
# NOTE: Make sure the URL ends with a "/" or you will have problems running LAMS
SERVER_URL=http://localhost:8080/lams/


# The home directory of jboss-4.0.2
JBOSS_DIR=/usr/local/jboss-4.0.2

# The directory that contains your JDK. (Must be 1.5 or higher)
JDK_DIR=/usr/lib/jvm/java-6-sun-1.6.0.00

# The location of your mysql executable (Must be 5.0 or higher)
SQL_DIR=/usr/bin

# The URL that you jdbc driver will be running through
SQL_URL=jdbc:mysql://hilbert.mat.uc.pt/${DB_NAME}?characterEncoding=utf8

--- in mysql-ds.xml ---

connection-url
jdbc:mysql://hilbert.mat.uc.pt:3306/lams2
connection-url

And now LAMS is (!?) installed sucesfully ... not quite :(

"java.lang.OutOfMemoryError: GC overhead limit exceeded"

And the JBOSS server is out

My system is a Linux/Debian 2.6.18-3-686-bigmem #1 SMP, box with a Pentium 4, 3Ghz, 2GB RAM.

In attachment the new server.log

Posted by Pedro Quaresma

14: Re: Re: Re: (...) Lams URL
In response to 13 03/15/07 11:35 AM
[ Reply | Forward ]
The attachement fails to be sent, I will try again.

Posted by Pedro Quaresma

Attachments:
15: Re: Re: Re: Re: (...) Lams URL
In response to 14 03/15/07 11:55 AM
[ Reply | Forward ]
It is working now :)

I forgot to modify the memory settings when I (re)installed the JBOSS 4.0.2 (after uninstalling JBOSS 4.0.5).

Let me ask two other things:

The localhost:8080 setting in lams.properties affects in any way the server capability? I want to link LAMS and Moodle, and I want the the Moodle server be available from other computers.

The setting (in lams_configuration)

SMTPServer | mail.lib.mq.edu.au

shouldn't be changed to a local smtpserver?


Many (many, many, many :) thanks for all your help.

Posted by Pedro Quaresma

16: Re: Re: Re: Re: Re: (...) Lams URL
In response to 15 03/15/07 04:32 PM
[ Reply | Forward ]
Glad to hear it is working!

(1) The localhost:8080 in lams.properties: you should change that to use your "real" server name ie hilbert.mat.uc.pt

The lams.properties file is only used by the install - it isn't used while LAMS is running. So changing it in the lams.properties file now won't change how LAMS behaves. But you should change it so that you have a lams.properties files that is correct, should you ever have to re-install LAMS.

As you have already discovered, the configuration details used when LAMS is running is kept in the lams_configuration table in the database and can be updated via the sysadmin menu. You need to make sure that the setting there for the ServerURL is correct. This will need to be the same address that you put into the Moodle module to integrate the two systems, so you are right - localhost:8080 won't work!

The instructions for changing the serverURL setting are on the page Changing Server Ports for LAMS. I wrote this page yesterday to summarise all the advice we have been giving about changing the port that LAMS runs on - given the number of postings on this subject!

(2) The setting in the SMTPServer field should be your own smtpserver, or blank. We don't actually use it at the moment but we have plans to use it in the future.

(3) The instructions for linking LAMS and Moodle are available on LAMS v2.0 Integration Setup Step-by-Step Guide. The screendumps on this page say localhost, but that is only because they were done on my laptop and no one ever accesses that from another machine! In your case, it would be hilbert.mat.uc.pt and whatever servername you use for Moodle.

Fiona

Posted by Fiona Malikoff

Reply to first post on this page
Back to Problems Installing LAMS