Moodle?

Moodle?

Lee Henderson -
回帖数:24

Hello all

I have followed 8 different sets of instructions for installing Moodle on Ubuntu Server 18.0.4

Every one does not work

Every one is slightly different

So please, does it actually exist that there is clear instructions for this that actually work?

回复Lee Henderson

Re: Moodle?

Ken Task -
Particularly helpful Moodlers的头像

Mind sharing the URL's of the 8 different instructions?

Unfortunately, one set of instructions might not work 100% with *all* hosting providers which could be Amazon, Google Compute Engine, TMD, Rackspace, DigitalOcean, etc.

So where one host and the hosting option chosen is also a factor.  Mind sharing that as well ... where you host, the option chosen as well.

'SoS', Ken

回复Lee Henderson

Re: Moodle?

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
I expect every one worked for the people who wrote them.

I appreciate this is confusing... but pick something that's close and explain the problem(s) you are having. We'll try to help.
回复Howard Miller

Re: Moodle?

Lee Henderson -

Thanks for replying.  To explain, I want to use this on a real Ubuntu server

So, to test it all out, its a Virtual machine of Ubuntu Server 18.0.4, its using bridge mode so its on the same IP range

So its a new Ubuntu server, all updated, the only thing installed is Webmin

Every time I go through the commands, it either fails on the maria-db or mysql server, or I get past that and all the way to the web services running but when I try to enter the username / password it says failed

Is there a clear clean and updated set of instructions for installing onto Ubuntu Server?  16.0.4, 18.0.4 or even version 20?

Thanks again

回复Lee Henderson

Re: Moodle?

Marcus Green -
Core developers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
'Is there a clear clean and updated set of instructions for installing onto Ubuntu Server?'
So nobody duplicates the work you have already done, what have your web searches found so far?
回复Lee Henderson

Re: Moodle?

Ken Task -
Particularly helpful Moodlers的头像

Ok, we're getting some info that hopefully leads to solution for you ...

This part ... "bridge mode so its on the same IP range" sounds like the Virtual hosting is VirtualBox and you have a Ubuntu 'guest' OS 18.0.4.

Is that correct?

Also your 'panel' is Webmin ... which is perl based and has a built in web service of it's own which by default runs on port 10000 ... can you access the Webmin from another workstation on your network?

IF so, the URL to your webmin would look like http(s)://192.168.0 or 1.some number:10000/

OR 10.x.x.x:10000/

So if I am understaning your setup ...

A machine - running VirtualBox - guest OS Ubuntu 18.04 - and in that guest OS a webmin running on port 10000 - and you want to run Apache/MySQL in the Ubuntu 18.04 so you can run a Moodle.

Now some network/technical questions ...

In VirtualBox config one cannot set a static IP address for virtual guest OS's.  So using Webmin, you've been able to set virtual eth 0 (a nic) to a static IP address in the range of your private 192.168.0 or .1 range.  It's NOT DHCP is it?

Through webmin you have started MySQL service and it has a root user with password.  Have you created a database for moodle?  Character set utf8mb4 with collation of utf8mb4_general_ci?

Through webmin you have started Apache and a 'phpinfo' page works from /var/www/html/ directory.   Shows all the required PHP extentions for running Moodle are installed.

One can Google and find many many how2's ... but I've not found one specifically for your combo ... IF I am correct about your set up.

I searched Google using:

"installing Virtualbox Ubuntu 18.04 Webmin Moodle"

and got hits but nothing as simple as a 1,2,3,4 - for all of it.

So one would have to find separate tutorials for the parts keeping in mind what's required for Moodle to run.

BTW ... I do run VB on this Mac ... it does have a Ubuntu and a CentOS guest OS that I can run and each of those have webmin and a Moodle on them.

No ... I don't have a tutorial ... I use blogs on net for parts then finish up with git install of moodle.

But ... none of that is accessible to the outside world .. they are, however, accessible inside my home network by other workstations as well as my samsung android phone using local lan connection and samsung browser or FireFox.

Everyone else in here can help ... and appear to be assuming that the 'horse' is ok!  Not being critical here guys - just not assuming the 'horse' is not configured like a 'nag' and acting like ready for 'glue factory'! 微笑

'SoS', Ken

回复Ken Task

Re: Moodle?

Lee Henderson -
Hello!
Its a Mac running Mac OS 10.14 Mojave with VMWare Fusion 8.0.2. Its running in bridged mode so the VM gets a 10.7.3.X address just like everything else (the real machines)
It was on DHCP yes, but after each reboot it was using the same IP, but now im starting a totally fresh install and it will be static, Im not even going to install Webmin so its all fresh
I will let you know what happens next
回复Lee Henderson

Re: Moodle?

Ken Task -
Particularly helpful Moodlers的头像

10.7.3.x ... that's a large private IP network. So is this on a large school/corp private IP net?

Is there internal DNS pointing to a FQDN to 10.7.3.x?   Is there an external DNS pointing to *same* FQDN mapped to public IP which is mapped to the 10.7.3.x IP?

Best if one installs using a resolvable FQDN from the start and also best if apache is configured for https as well (LetsEncrypt?).

If this is on Mac laptop, which isn't server class hardware, you might hit limitations ... from anything along the path but especially the Mac itself.

Is there some reason this moodle couldn't  be hosted with RS,DO,TMD  or some existing provider which offers dedicated Ubuntu 18.06's that user builds to host whatever?

'SoS', Ken

回复Lee Henderson

Re: Moodle?

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
Yes - there's a clear set of instructions here, https://docs.moodle.org/38/en/Installing_Moodle

You're probably going to struggle repeatedly complaining that there isn't a "clean" set of instructions. You'll need to tell us which instructions you are using (link please) and where you are coming unstuck. There's quite a lot of Ubuntu expertise around here and I suspect we'll get you working.
回复Howard Miller

Re: Moodle?

Lee Henderson -
Hello, done that, errors, dont work
回复Lee Henderson

Re: Moodle?

Lee Henderson -
Ok, so now its got much further, all the way to the end parts of accessing via web browser
It all says its done it, but I keep clicking next next next next next next but it never ends?
回复Lee Henderson

Re: Moodle?

Lee Henderson -

Keep clicking next, but no end

附件 Captura de pantalla 2020-05-02 a las 19.51.44.png
回复Lee Henderson

Re: Moodle?

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
Did you do what the instruction said under "configuration completed"?

BTW... I deleted your other posting that was exactly the same. Please don't post multiple threads about the same problem. I appreciate you are frustrated but you're going to have to make an effort to be nice. We will try and help but only up to a point. Loads of people manage to install Moodle without issue despite the terrible instructions. If you are going to use Linux (and you probably should) then it's worth spending a day or two learning Linux server basics. It will will pay you back multiple times over. 

Oh... and I'm moving this to the Installation and upgrading help forum.
回复Howard Miller

Re: Moodle?

Lee Henderson -
Sorry, what do you mean: Did you do what the instruction said under "configuration completed"?

I just saw next next next, nothing else
回复Lee Henderson

Re: Moodle?

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
It tells you to manually copy the configuration to a file called config.php. Did you do that? You won't get any further if you don't.

EDIT:
Never mind, I see Ken put you right
回复Lee Henderson

Re: Moodle?

Ken Task -
Particularly helpful Moodlers的头像

Web based install could not create the config.php file due to ownerships/permissions on the directory where the code resides ... assuming /var/www/? - best if /var/www/html/ me thinks as that is more like true servers one would see in internet as described in mulitples of blogs  ..

In ubuntu, user for apache is www-data and group is www-data.

So, via shell, as root, chown www-data:www-data /var/www/* -R

and chmod ugo+r /var/www/* -R

moodledata needs more liberal ...

chmod ugo+rwx /var/moodledata/ -R

OR ... one could copy the contents of the config.php file shown, open terminal and change into /var/www/[wheremoodlecoderesides]

nano config.php

paste the contents of what was shown.

Save the file.

Then make sure config.php is readable by all:

chmod ugo+r config.php

Now try with browser.

So this will be a internal to private IP moodle server ONLY.

No DNS nor https ... and on a Mac Laptop ... with layers of network complexity ... oh my ... what ever floats your boat I guess. 微笑

Best of luck!

'SoS', Ken

回复Ken Task

Re: Moodle?

Lee Henderson -

Thanks for your help, much appreciated.  All working now

As I say, it was to set it up, have a working test, it is working fast enough now to throw some stuff at it, if it passes those tests then ill bung it on a real machine with all the FQDN etc....

I did miss some things, so i  will put my hands up, its been a long day haha

Question, is this reliable?  I mean will some security update kill the entire thing?

回复Lee Henderson

Re: Moodle?

Ken Task -
Particularly helpful Moodlers的头像

"Question, is this reliable?  I mean will some security update kill the entire thing?"

Of which 'security updates' do you speak?  Mac OS, VB, Ubuntu (+ PHP + MySQL), or Moodle?  All of the 6 could break it's part in this convoluted approach to a testing site.  But, if it happened, that would be good!  As an admin of a Moodle server with students and other teachers/admins using as 'true school' (the 'new normal') you'll find a way.  Right?

So if you did moodle using git ... I'd say pretty safe.  Ubuntu and apt-get ... since you've opted for a LTS 18.04, pretty safe there,  package manager for it is good for Apache/MySQL/PHP, so good there also. VB had an update just the other day, and MacOS .... hmmmm ... they've had some issues with the update prior to the last one - only certain models etc.

Might consider, when you get ready to put what you have created on a real server (FQDN/Cert and all), using course backups and restoring rather than migrating whole site.  

Why?  Hosting environment ... things like mod_security, or securi or behind CloudFlare or other might come into play ... and you can't really practice those in the testing environment you have.  Or, start reading up on how to migrate a site ...

https://docs.moodle.org/38/en/Moodle_migration

BTW, which document/tutorial did finally use to get the installation working?

Am certain curious minds would want to know!

'SoS', Ken

回复Ken Task

Re: Moodle?

Lee Henderson -
hello, I meant just general Ubuntu system security updates, but yes you are right, its the same on all Operating Systems
There were a couple of parts in section 2 and 3 where I mis-read it and didnt get the importance. I basically got the manual done on here and edited it in TextEdit ust adding some notes and points for things to look out for. There was also problems with VMWare on an iMac and Ethernet, used another old Macbook Pro from 2008 with VMWare and it worked perfectly. Now hosting it from VMware on a 2011 Mac mini running Mojave. All is working, then when I tried to access the page externally it was of course trying to load the internal IP. I changed that in config.php to the FQDN and now all good.
Now I have a working system, added English and Spanish language support, some courses, some users, all running fine on the VM with only 2Gb RAM and 2 cores allocated