Installing Moodle in Linux

Installing Moodle in Linux

by Thilanka Deshan -
Number of replies: 25

My system is running on Ubuntu 14.04 LTS. It seems like most of the installation sources of Moodle( such as installer packages and basic instructions etc.. ) are provided for Windows in most of the time (& MAC also).

I'm not sure that i will able to work perfectly in linux environment as same as windows. I want to know are there any instructions to handle moodle in linux ?and is it a good idea to develop moodle in linux ?

what is the best environment to development of moodle.windows or linux?

Average of ratings: -
In reply to Thilanka Deshan

Re: Installing Moodle in Linux

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
In reply to Visvanath Ratnaweera

Re: Installing Moodle in Linux

by Thilanka Deshan -

thank you very much for your reply sir.

but they say ,

"Moodle used to be included as a Debian package. However, it has not been included in recent releases".

I'm hoping to work with moodle in GSOC2015. so what would be the best environment to develop moodle ,Linux or Windows?

In reply to Thilanka Deshan

Re: Installing Moodle in Linux

by dan attwood -

moodle is no longer supplied as a deb as it wasn't being maintained. 

Moodle is a web app though that needs php, a web server and a database. so by far the best way to use it is to download it to your platform and install it manually

Linux is a easiest way to do this (IMHO)


In reply to dan attwood

Re: Installing Moodle in Linux

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hallo Dan

> moodle is no longer supplied as a deb as it wasn't being maintained.

Where did you get that information? My latest is the opposite: https://moodle.org/mod/forum/discuss.php?d=278847#p1201451.

> Moodle is a web app though that needs php, a web server and a database.

Sorry sir. I don't know where 'app' comes from. Today it is mostly used to mean a http://en.wikipedia.org/wiki/Mobile_app. Moodle is mostly a set of PHP scripts that run in a http://en.wikipedia.org/wiki/Web_server and partly JavaScript which run inside the http://en.wikipedia.org/wiki/Web_browser.
Average of ratings: Useful (1)
In reply to Thilanka Deshan

Re: Installing Moodle in Linux

by john Simpson -

Linux o f course. Open source works best together, and Moodle with linux Ubuntu are a perfect couple.

But to be honest I can't compare, because I have had no need to use windows for anything since windows xp, which was about ten years ago.

Average of ratings: Useful (1)
In reply to Thilanka Deshan

Re: Installing Moodle in Linux

by john Simpson -

I would like to know where you got the impression that instructions, installer packages or whatever are provided for just windows. In fact the whole package buildup of moodle has nothing to do with windows. In fact it's whole package is open source, windows is commercial and they don't mix.

here are the official installation instructions.

https://docs.moodle.org/28/en/Installing_Moodle


Average of ratings: Useful (1)
In reply to john Simpson

This forum post has been removed

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

Re: Installing Moodle in Linux

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

This idea, and the various other "easy" package installers are fabulous for **testing* (and evaluating) Moodle. What they are no good for is running a production site. And the problem is that they fall into the hands of the unweary who try to do just that. 

You then see in here... "I installed Moodle with M.Mouse.One.Click.Package. How do I upgrade?". Answer, "No idea. We don't know what that thing did!". 

If you are just testing or evaluating Moodle then by all means do whatever is easy or expedient to get it going. However, running a live production site is a whole other ball game. Much of what you will need to understand isn't Moodle either. As I have said many times before, being a server administrator is a well paid job. Either learn how to do it or find someone else that knows.

Average of ratings: Useful (2)
In reply to Deleted user

Re: Installing Moodle in Linux

by Ken Task -
Picture of Particularly helpful Moodlers

@Alan

Yes, that's somewhat true.   But ... there's always yin/yang ...

There's still this:

https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#How_to_start_your_Bitnami_Virtual_Appliance.3f

which, for some, is still daunting.

And, for some, the impression might be that to move to a true hosting environment (with any hosting provider), Bitnami could be used - which am almost certain would not be allowed by hosting providers.

BTW, Bitnami does offer in the 'cloud' (a trial?).

https://bitnami.com/cloud

yet another level/layer.

Regardless of how installed, initial installation is but tip of the ice burg.   When issues raise their ugly head and user comes to these forums for resolution of their problems, they should include information about their setup.   Reason, issue may not be a moodle issue, but somewhere in the layers above ... Host OS, Guest OS + Bitnami.

On the plus side ... think Bitnami is GREAT for getting to know the Guest OS and how one could take advantage of it with Moodle.  Would consider using Bitnami on MacOSX or Winders ONLY, but NOT on a Linux system.  My 2 cents, of course!

'spirit of sharing', Ken 


In reply to Ken Task

This forum post has been removed

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

Re: Installing Moodle in Linux

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Yes indeed - you are *always* welcome ask. But we did not build many of these packages and so it's not always as easy as we might like to help. 


Just to illustrate, I installed Alfresco the other day using Bitnami. Nightmare. None of the instructions and advise worked (because Bitnami's installation is completely non standard). I eventually gave up in disgust, installed Ubuntu and then Alfresco the "hard" way. Was actually quick and easy and I have a "standard" system that lines up with the documentation and will make sense when I ask in the forums. Just sayin' wink


In reply to Howard Miller

This forum post has been removed

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

Re: Installing Moodle in Linux

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

A mail server is several orders of magnitude more complex to install and configure than Moodle. 

The big advantage with Linux is that most popular distros will pretty much run Moodle right out of the box. Download the source, create a data folder, create a database - job done. It's not, IMO, worth the bother of doing anything more. 

I can install Moodle on Ubuntu in about 5 minutes - having said that, I've done it once or twice before but, really, there's not that much to it. 

In reply to Deleted user

Re: Installing Moodle in Linux

by Ken Task -
Picture of Particularly helpful Moodlers

Have about 7 VirtualBox guest OS's on a MacOSX laptop ... CentOS & Ubuntu's mostly.

Just installed Bitnami's Moodle 2.8.3 package ... just to see ... tinker (what I do best!)

They say minimal Ubuntu ... and they mean it.   Below just a few 'different'/things ...

PHP 5.4.36
FPM/FastCGI

php.ini location:
/opt/bitnami/php/etc/php.ini

APC is enabled - No Zend Opcache

upload_max_filesize    40M
post_max_size    40M
Default timezone     America/Los_Angeles

session.save_path    /opt/bitnami/apps/moodle/moodledata/sessions    /opt/bitnami/php/tmp

location of moodle code
/opt/bitnami/apps/moodle/htdocs
location of moodle data
/opt/bitnami/apps/moodle/moodledata

Ownership permissions:
owner: bitnami group: daemon for both above

For those of you with Linux/Ubuntu 'experience' think you can see typical docs as provided by Moodle.org would be incorrect if user had a bitnami in VirtualBox system.

Is it good for development ... looks like it could be.   Would I run it production?  NOT ON ANYONE's LIFE!
Degree of difficulty for beginning Moodle wanna be developer/admin ... 1st depends upon their level of comfort installing VirtualBox.   If following Bitnami's directions ... pretty darn easy.   Notice ... that's *IF*.

Something one couldn't do with it no matter what they tried ... running Apache/Moodle under https with a *valid* CA.

Something one could learn to do ... setup a file system repo in the VB/Bitnami/Moodle package ... and learn how to: scp large backups over 40M to from MacOSX to the virtual VB/Bitnami/Moodle file system repo and/or mount the directory/folder from the MacOSX OS and do drag an  drop.

*** Install git and learn how to setup the Moodle.org git repo in the Moodle code folder to make future updates/upgrades a breeze without fear.

Bottom line: It has it's place.

'spirit of sharing', Ken
In reply to Deleted user

Re: Installing Moodle in Linux

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

For those "lay people" who I see as normally instructors who just want to offer a few classes, either a hosted plan like Moonami or MoodleRooms is probably the best path for them or even a regular webhost that offers a one click install.

However, I agree with the other comments.  If you want to get serious about running a Moodle site, you are far better off tackling the linux curve and learning how to do it right from the onset.  I have mentioned on another post that when I started, I knew nothing about linux. 

It took me way longer to overcome the fear of the unknown than to actually follow the step by step instructions that we have on the site and get moodle up and running.  Linux is not hard and there is a huge amount of support out there.



In reply to john Simpson

Re: Installing Moodle in Linux

by Thilanka Deshan -
oh..i think i got a wrong idea.cleared my mind after going through the links given by Mr.Vishwanath Rathnaweera.
In reply to Thilanka Deshan

Re: Installing Moodle in Linux

by john Simpson -

I, or perhaps I could say we would like to know how you get on with Moodle. I'm assuming you now accept that moodle is best for you running on Ubuntu 14.04,  that is what you are currently using.

Have you successfully installed moodle on Ubuntu, and did you follow these instructions provided by moodle.org And as you can see moodle does give instructions first for Ubuntu. The video tutorial is also worthwhile watching, as it shows someone actually following these instructions and successfully installing moodle.

https://docs.moodle.org/26/en/Step-by-step_Installation_Guide_for_Ubuntu


There is installing moodle, and then there is managing moodle on a day to day basis. Your experiences would be much appreciated.

Average of ratings: Useful (1)
In reply to john Simpson

Re: Installing Moodle in Linux

by john Simpson -

This is a tip for anyone wanting to install moodle from their windows or linux desktop, by using a virtual software, freely and easily downloade. There are six videos to follow, but that's because it's nice and slow, just the way some of us want it.

written instruction first: http://www.psychocats.net/ubuntu/virtualbox

Now the first entertaining have a pizza video: Follow the rest on youtube (not much point in crowding the forum with six video links)




Average of ratings: Useful (1)
In reply to john Simpson

Re: Installing Moodle in Linux

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
The author of those videos has submitted a post in this forum: https://moodle.org/mod/forum/discuss.php?d=199542.
Average of ratings: Useful (1)
In reply to Visvanath Ratnaweera

Re: Installing Moodle in Linux

by john Simpson -

Yes, thank I tead it and the author has made some very useful videos. Virtualbox is great not only for moodle, but for those who want to try out safely all the different linus OS's that are available, especially good for windows who want to find out without risk how good and easy  linux is.

In reply to john Simpson

Re: Installing Moodle in Linux

by Thilanka Deshan -

At last I have succesfully installed Moodle in My Ubuntu 14.04 LTS  approve .  actually it was very easy to install , rather than i thought what it would be. the instructions in the link and the above video are very clear and instructions are written in a manner of easy to follow.

the reason  why i take 2-3 days to reply to this thread is currently i am facing to my Mid Semester Examination in my degree programme. otherwise it has taken approximately 2hrs (depending on  my internet connection) to install it. i'm very satisfied with Linux as it ended up succesfully.hope to go through the moodle code base to understand the functionalities and after that do some Bug Fixes.

and i think for a someone who tries to install moodle in their system , it will make much easier if he/she follows both online instructions and the video mentioned above( Specially around Step 7).

thanks all of you for your valuable advices given and information.need them in the future too.

Average of ratings: Useful (1)
In reply to Thilanka Deshan

Re: Installing Moodle in Linux

by ryan sanders -

just catching this thread.  

the bitnami thing. i did not find useful. there was some limitations. as in seeing the "server side code"  and tied directly to bitnami code base.  i would imagine if you contacted them / purchased the package. you could get full code.  then again it could have been my own lack of knowledge of linux / cloud type of setups. 

though after seeing these 2 links. 

i might give it another try. vs trying to deal with actual hosting providers.  that is if i can find some time to mess around with it.

In reply to ryan sanders

Re: Installing Moodle in Linux

by ryan sanders -

i did catch a few hosting providers allowing easier access of different versions of AMP (apache, mysqul, php)  if you went with a windows server package through hosting provider.  without extra hassle of learning linux and special commands and stuff for linux.  i am purely guessing wamp / xamp like setups used on these hosting packages. were it is easier for some company to modify / copy a wamp / xamp install for there hosting setup.

i am still reluctant to use windows servers.  the "minimal install" of a linux package. for stream lined non bloated up server. *awe*