Ubuntu 6.06 + Synaptic + Moodle: help?

Ubuntu 6.06 + Synaptic + Moodle: help?

by j l -
Number of replies: 7
Hello all, first let me start by saying my Linux knowledge is very, very basic.

Basically whether I do this through a console-only server setup via apt-get, or through the graphical interface + synaptic, I end up in the same predicament.

My latest attempt was via graphical desktop + synaptic.

I marked the moodle package for install, and told it to go about its business, I answered its questions about my database, and everything went smooth.

This is where I get confused.

It then tells me to run http://localhost/moodle/admin

Which is fine... but now I am stuck this way, and I cannot access the server from any other machine. It tells me Forbidden, I don't have access, etc, etc.

I don't see any other mention of any other steps to resolve this issue.

I'm sure some of the savvier here are laughing at this point, but unfortunately I don't know very much at this point with Linux and its crazy permissions all over the place. smile

If someone could point me in the right direction as to why this is happening, and how people are supposed to know what to do with the Synaptic install of Moodle, I would appreciate that very much.


Average of ratings: -
In reply to j l

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to j l

Re: Ubuntu 6.06 + Synaptic + Moodle: help?

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
This is something specific to Ubuntu/Debian Moodle packages.

By default, they install Moodle pre-configured so you can only access it from localhost, but not from the network, so you can install and setup it up securely.

You need to edit /etc/moodle/apache.conf and un-comment the line that reads:


# allow from all


so your Moodle site is available from everywhere.

Saludos. Iñaki.
In reply to Iñaki Arenaza

Re: Ubuntu 6.06 + Synaptic + Moodle: help?

by j l -
Ah ha, thank you so much. That seems to have done the trick.
In reply to j l

Re: Ubuntu 6.06 + Synaptic + Moodle: help?

by Herbert H -
I 've a similar problem on a 7.10 server.

When I uncomment

# allow from all

in /etc/moodle/apache.conf

then the first site of moodle is avaiable from the client but when I click login, I see:

'Beim Laden von http://localhost/moodle/login/index.php ist folgender Fehler aufgetreten:
Keine Verbindung zu Rechner localhost.'

(It's german: error when connecting to http://localhost/moodle/login/index.php
No connection to localhost)

It works when I replace in /etc/moodle/config.php in line

16: $CFG->wwwroot = 'http://localhost/moodle';

localhost by the ip-adress of my server

Is this a correct way or should I do something else?
In reply to j l

Re: Ubuntu 6.06 + Synaptic + Moodle: help?

by Herbert H -
I 've a similar problem on a 7.10 server.

When I uncomment

# allow from all

in /etc/moodle/apache.conf

then the first site of moodle is avaiable from the client but when I click login, I see:

'Beim Laden von http://localhost/moodle/login/index.php ist folgender Fehler aufgetreten:
Keine Verbindung zu Rechner localhost.'

(It's german: error when connecting to http://localhost/moodle/login/index.php
No connection to localhost)

It works when I replace in /etc/moodle/config.php in line

16: $CFG->wwwroot = 'http://localhost/moodle';

localhost by the ip-adress of my server

Is this a correct way or should I do something else?
In reply to Herbert H

Re: Ubuntu 6.06 + Synaptic + Moodle: help?

by Richard Enison -
HH,

The use of localhost in wwwroot is fine for stand-alone installations of Moodle on one's own PC that will only be accessed from that PC (or Mac). To make it accessible from other computers in a LAN, WAN, or the Internet, localhost needs to be replaced by the ip-address, as you have done, or a domain name that maps to the ip-address in a name server. So the answer is yes.

The only problem occurs if your server is part of both a LAN and is online on the Internet, and you want to be able to access your Moodle site from both. The ususal solution is to have a domain name in the LAN that is the same as the domain name on the Internet, and have it mapped to the LAN ip address locally, while the Internet domain is mapped to the Internet ip address. But you haven't said you wanted to do anything like that, so I just thought I'd let you know that you can. If that problem comes up, I can refer you to other forum posts and docs pages that go into more detail about that.

RLE
In reply to Richard Enison

Re: Ubuntu 6.06 + Synaptic + Moodle: help?

by Herbert H -
Thank you Richard.

In the moment I'm just exploring moodle in my private LAN so it is OK.
The goal is to convince my colleagues in our school to use it. Then moodle will be used in LAN and Internet. But when this happens I will have more help from our admins.

Herbert