Forum .LRN Q&A: Installing .lrn cvs almost there

Collapse
Posted by adde esson on
Hi,

I've been trying for a couple of months to get .lrn to run on my debian 4.0 etch in different ways, but never been lucky.

Yesterday i tried to dowload openacs and.lrn via cvs using this link;
https://openacs.org/forums/message-view?message_id=360004.

It all went through well to the point where it says "...After that edit the config file and start the AOLServer. OpenACS and .Lrn are installed perfectly."

Is it in my sample-config.tcl file i have to modify, and what to change? What else to do?

I would be more than happy if someone could help me so i can get .lrn up and running.

regards
adde

Collapse
Posted by Carl Robert Blesius on
Welcome Adde. We are having a .LRN meeting in Guatemala right now and the difficulty in getting it installed came up in the meeting today as something we need to work on. So stay strong. We are aware of the pain you are going through and it will get better soon. I am guessing you probably do not want to wait another few months, so let's get started...

Have you changed the first portion (servname, hostname, ip, etc.) of the config.tcl file you should be able to find in /var/lib/aolserver/YOURSERVERNAME/etc/config.tcl ?

Does your error log say anything when you try to start it up?
/var/lib/aolserver/YOURSERVERNAME/log/error.log

Use the command "tail -f /var/lib/aolserver/YOURSERVERNAME/log/error.log" to watch it on startup.

If you post some of these details, you will make it easier for people in the forums to help you get going.

Also, the IRC channel is a good place to get some more immediate feedback (although a couple of the people that are usually there are at the meeting this week).

Collapse
Posted by adde esson on
Thank you for your answer.

Is it possible for me to get an example of how config.tcl can look like?

Have i get it right that i should move the dotlrn map into /var/www and then open install.xml from my browser?

I dont really know how to proceed further.

Thanks in advance

/adde

(aolserver, postgresql etc seems to work fine)

Collapse
Posted by Victor Guerra on
You have to start your aolserver using the config.tcl provided within the dotlrn distro. You will find your config.tcl under:

PATH_TO_DOTLRN/etc/config.tcl

You can edit some variables in that file, for example, httpport, db_host, db_user, etc.

Good news you have aolserver and postgresql working already.

Collapse
Posted by adde esson on
Thank you for taking time.

I trying on a local machine. 127.0.0.1.port 8000.

/var/lib/aolserver/service1/etc/config.tcl
/var/lib/aolserver/service1/etc/keepalive/keepalive-config.tcl
/var/lib/aolserver/service1/packages/acs-core-docs/www/files/config.tcl.txt
/var/www/dotlrn/etc/config.tcl
/var/www/dotlrn/etc/keepalive/keepalive-config.tcl
/var/www/dotlrn/packages/acs-core-docs/www/files/config.tcl.txt
/var/www/dotlrn/packages/new-portal/www/admin/portal-config.tcl
debian:/home/asl# gedit /var/www/dotlrn/etc/config.tcl

trying with http://localhost:8000

from config.tcl
set httpport 8000
set httpsport 8443
# If setting port below 1024 with AOLServer 4, read comments in file:
# /var/lib/aolserver/service0/packages/etc/daemontools/run

# The hostname and address should be set to actual values.
# setting the address to 0.0.0.0 means aolserver listens on all interfaces
set hostname [ns_info hostname]
#set address [ns_info address]
set address 0.0.0.0

# Note: If port is privileged (usually < 1024), OpenACS must be
# started by root, and, in AOLserver 4, the run script have a
# '-b address' flag which matches the address according to settings (above)

set server "service0"
set servername "New OpenACS Installation - Development"

set serverroot "/var/lib/aolserver/${server}"

#---------------------------------------------------------------------
# which database do you want? postgres or oracle
set database postgres

set db_name $server

if { $database == "oracle" } {
set db_password "mysitepassword"
} else {
set db_host localhost
set db_port "8000"
set db_user $server

excuse me for my low level questions but im stuck here..

Collapse
Posted by Dave Bauer on
Check out this
https://openacs.org/doc/current/openacs.html
Scroll down to
4. Configure an AOLserver Service for OpenACS.
it explains the variables you need to change in the config.tcl file.
NOTE: I see you have quite a few different files.
Find out where you installed dotlrn.
Looks like /var/www/dotlrn
THe config file is under /var/www/dotlrn/etc/config.tcl then.
It's always under where_you_installed_dotlrn/etc/config.tcl.