Edubuntu Install gone awry

Edubuntu Install gone awry

Robert Lefeb -
回帖数:11

Hello all,

I am getting an install performed through synaptic that indicates all is normal but no datab ase is ever installed and no page is found at localhost/moodle.

I can't find which config pages are wrong. Moodle seems to be installed in usr/share correctly

回复Robert Lefeb

Re: Edubuntu Install gone awry

Ken Task -
Particularly helpful Moodlers的头像

Moodle on that platform requires PHP, MySQL, and Apache.

Moodle scripts by themselves will not create the database nor the data directory it uses.  Nor will they set permissions/ownership nor install the PHP extensions required to run it, etc.

Please see (such that it is):

http://docs.moodle.org/20/en/Talk:Step-by-step_Installation_Guide_for_Ubuntu

Might start @:

http://docs.moodle.org/23/en/Installing_Moodle

'spirit of sharing', Ken

回复Ken Task

Re: Edubuntu Install gone awry

Robert Lefeb -

Thank you Ken.

 

I was finally able to get it installed.

I was using EdUbuntu to install it and it has Moodle in its "Synaptic Manger" which is a software installation tool. SInce using it leaves so much unfinished it may be just as easy to install manually which is what I ended up doing.

 

回复Robert Lefeb

Re: Edubuntu Install gone awry

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
Hi Robert

This is the famous old discussion "automatic" vs. manual installation. See 'Debian based Linux: Ban "apt-get install moodle"!' http://moodle.org/mod/forum/discuss.php?d=196512.

The much touted "moodle" packages in the Ubuntu repos are brocken! Moodle installed in /usr/share !! Ever heard of the Linux http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard ?
伤心
回复Visvanath Ratnaweera

Re: Edubuntu Install gone awry

Edmund Edgar -

Jumping into a philosophical sysadmin discussion with Visvanath that isn't going to help the OP here (Visvanath, if you prefer to reply on the apt-get thread I'll follow it there), but the Debian maintainer is following the Filesystem Hierarchy Standard.

The application is in /usr/share/, because it's "Architecture-independent (shared) data".

The data files go in /var/lib/, because they're "Persistent data modified by programs as they run".

There are all kinds of things wrong with the current package management situation around Moodle right now, but the place the maintainer put the files isn't one of them.

回复Edmund Edgar

Re: Edubuntu Install gone awry

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
Hi Edmund

I stand corrected on the issue of paths in the moodle Debian/Ubuntu packages. Those packages caused so much damage, I tend to condemn them outright.

As a result, no need to continue "a philosophical sysadmin discussion" in the apt-get thread.
眨眼

回复Ken Task

Re: Edubuntu Install gone awry

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
Hi Ken,

The 'Step-by-step Installation Guide for Ubuntu' is outdated. There are only
http://docs.moodle.org/19/en/Step-by-step_Installation_Guide_for_Ubuntu and
http://docs.moodle.org/20/en/Step-by-step_Installation_Guide_for_Ubuntu
and no
http://docs.moodle.org/21/en/Step-by-step_Installation_Guide_for_Ubuntu
http://docs.moodle.org/22/en/Step-by-step_Installation_Guide_for_Ubuntu
http://docs.moodle.org/23/en/Step-by-step_Installation_Guide_for_Ubuntu

The 'moodle' package in the Ubuntu repos is no more maintained: http://moodle.org/mod/forum/discuss.php?d=196512#p901409.

I've documented the "manual" method here docs. http://docs.moodle.org/en/Installing_Moodle_on_Debian_based_distributions and still maintain it. (I'm sorry for the confusion the countless version dependent wikis create http://moodle.org/mod/forum/discuss.php?d=200288, I maintain only the /22/ version although the article is valid from 1.6 to 2.3.)
回复Visvanath Ratnaweera

Re: Edubuntu Install gone awry

Robert Lefeb -

Ahhhh, that partially helps explain all the confusion I was experiencing. I had installed Moodle numerous times previously both manually and using Fantastico on a shared hosting server. The Fantastico install would sometimes be outdated and I would switch to manual install but, when used, Fantastico usually was successful in installing it.

I wasn't aware that Ubuntu (but I was using EdUbuntu which places yet another layer of obfuscation) was not supporting it. I had been messing with it a while when, to my surprise, I saw it (EdUbuntu) was installing a much older version (1.9.9) which prompted me to switch to manual install.

I'll see what I can do in the Ubuntu and EdUbuntu communities to get this corrected.

It may be moot at this time but one issue that I am still not clear on is where the EdUbuntu Synaptic was installing Moodle. Somehow I ended up with the Moodle install going to usr/share/moodle on the server when it was supposed to be in var/www/Moodle.
As soon as I moved Moodle to that location and added the moodle version of the default config file to etc/apache2/sites-available then  localhost/Moodle was picked up in the browser. After that Moodle handled the install flawlessly.

回复Robert Lefeb

Re: Edubuntu Install gone awry

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
Hi

We are talking about many things here.

- Fantastico Moodle
No idea, never used Fantastico. According to your experience, "sometimes outdated but usually successful".

- Package 'moodle' in the Ubuntu repos
They have created lot of misery and still doing that. Those jokers who've uploaded that malware to the Ubuntu repos and gone underground should be found and charged for sabotage.
伤心

- Package 'moodle' in the Debian repos
Apparently maintained, but barely: http://moodle.org/mod/forum/discuss.php?d=196512#p901409. I have a pile of reservations against it, three of them are documented in the same thread: http://moodle.org/mod/forum/discuss.php?d=196512#p901790. And the fourth one "c) I'm completely stumped by the idea, that the PHP version of a Debian release decides what Moodle version goes in. I find no words for that." is here http://moodle.org/mod/forum/discuss.php?d=196512#p902685.

Your question:
> I am still not clear on is where the EdUbuntu Synaptic was installing Moodle.

I'm not too familiar how a package propagate in those countless 'official' repos. There are many dimensions to this: The releases (8.04, 8.10, ... 12.04), the flavours (all the ?buntus), the add-ons (Edubuntu, Mythbuntu, ...), not to mention the backports and community/privately maintained repos.

The plus side is, the "layer" you use to fetch those packages, dpkg, apt-*, aptitude, synaptic, is irrelevant. For a given setup all four (are there more?) will fetch the same package(s).

> Somehow I ended up with the Moodle install going to usr/share/moodle on the server when it was supposed to be in var/www/Moodle.

You mean /usr/share/moodle and /var/www/moodle (check the leading slash)? Once even /etc/moodle was mentioned. Even a beginner knows what /usr is for: "Secondary hierarchy for read-only user data; contains the majority of (multi-)user utilities and applications" http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard. Perhaps the so called developers of the moodle package believed Moodle is an 'app'.
伤心

> As soon as I moved Moodle to that location and added the moodle version of the default config file to etc/apache2/sites-available then localhost/Moodle was picked up in the browser. After that Moodle handled the install flawlessly.

Good on you! But the fundamental question remains to be answered: 'apt-get install moodle' is the equivalent to the "one-click" installation in the GUI world. Will/want those potential administrators analyze the file system before and after apt-get and move them around? And where is the "one-click" if you consider the full operation?

回复Robert Lefeb

Re: Edubuntu Install gone awry

Edmund Edgar -

Hi Robert.

Just to explain what's going on here, Debian-family package managers put web applications in /usr/share, then create a virtual host setting at /etc/moodle/apache.conf, which Apache reads using a symlink in /etc/apache2, so that when you hit a URL at http://yoursite.example.com/moodle/, that uses the files in /usr/share/moodle.

If you've gone with a manual install (which is probably a good idea, because the state of the Moodle packages on Ubuntu right now seems like a big old mess) you should probably make sure you've uninstalled the Synaptic package, and check that your current Moodle still works after you do that (eg it wasn't using the database of the version installed by Synaptic, which may cause strange things to happen on updates).

回复Edmund Edgar

Re: Edubuntu Install gone awry

Robert Lefeb -

Thanks Edmund,

Yes, everything is working fine now.

 

I installed Moodle in var/www/moodle where I had plenty of documentation about how to config apache.

Since I am contemplating installing at least one other open source script, I anticipate their files would be uploaded to the same location wouldn'y they? I mean, if var/www is the default defacto location for installing open source scripts why change it for Moodle? But if the typical install location for scripts is in the usr folder where the auto install of Moodle puts in then just some real specific instructions would probably clear the log jamb.

At this point I would recommend manual install without qualifications.

回复Robert Lefeb

Re: Edubuntu Install gone awry

Edmund Edgar -

Well, /var/www is where you'd normally put a web application if you install it manually, mainly because Apache will then serve it to you by default, without needing any extra Apache configuration.

Where possible it's generally a good idea to keep areas managed by your package manager separate from areas you manage manually, so you're right to put it in /var/www when you install it manually, and Debian is right to put it in /usr/share when you install it with apt-get.