Moodle Information

Moodle Information

ved Mahipal Ramachandran -
Antal besvarelser: 4

Hello Friends,

Wishing you all a Happy New Year. I had two questions regarding the use of Moodle. They are:

1> Is Moodle compatible with all the flavours of Linux like RedHat, Fedora

2> Can I have two instances of Moodle running on the same machine?

Thank you all in advance.

Regards

Mahipal

Gennemsnitsbedømmelse: -
I svar til Mahipal Ramachandran

Re: Moodle Information

ved Anthony Borrow -
Billede af Core developers Billede af Plugin developers Billede af Testers
1) Yes, Moodle is compatible with all flavours of Linux and is specifically designed toward a LAMP environment; however, other OS's (such as Windows and Mac), other webservers (such as IIS), other database servers (Postgres and recently even MSSQL - with 1.7), are compatible. So you have numerous options in terms of setup. I run Moodle on a Ubuntu server, using Apache and MySQL with APC (PHP cache/accelerator).

2) Yes, you can have one server run multiple instances of Moodle. Simply store the various instances in different locations and modify the config.php file to point to a different database and you should be good to go.

Happy New Year and Happy Moodling!
I svar til Anthony Borrow

Re: Moodle Information

ved Mahipal Ramachandran -

Hello Anthony,

I appreciate the information that was provided. However, I wanted some clarifications on the second point.

The scenario is as below:

I have set up a single instance of Moodle on my LAN with the IP address of the machine. A machine with Windows XP Home edition is serving as the Web Sever. If I type the IP address of this machine on any client I am able to access the web server. But if I am to host one more instance of moodle and run both the instances simultaneously on the same machine and use the same IP address which instance of moodle will be called? Is there some other way of accessing the Web server on client machines instead of using the IP address?

I hope I was able to clarify my thoughts. Once again your assistance is appreciated.

Regards

Mahipal

I svar til Mahipal Ramachandran

Re: Moodle Information

ved Anthony Borrow -
Billede af Core developers Billede af Plugin developers Billede af Testers
Mahipal - Welcome to the Moodle community! As you will likely discover, the more information you can provide the more other folks can help. Typically, it helps to know the OS (WinXP Home in your case), the web server and version (Apache 2.0?), the database server (MySQL 5.0?), and the version of PHP (5.2?) that you are using. I am assuming that you are running Apache on your WinXP server.

It sounds like you can accomplish what you want by configuring the apache web server for a virtual host. I initially setup our production server on a WIMP server (Windows, IIS, MySQL, PHP) and vaguely remember how I did it. Under Windows, the computer name is associated with the IP so that you can use its name as a way of locally calling the machine. It sounds like you made the Moodle directory your root directory which is a good approach if that web server is dedicated to serving Moodle pages. On my office desktop, I run a test server that I encourage other staff to use for testing new features. The computer name is Borrow and I do not make the document root the first instances path. Instead I create a folder called web and put the first instance of moodle as a subfolder of web so that each instance has its own folder. That allows me to simply call http://borrow/moodle/ but you could do the same thing. If your computer name is Mahipal and you put one instance in a folder called Instance1 and another in Instance2 you could call http://Mahipal/Instance1 or http://Mahipal/Instance2. Note that this will only work inside your LAN. You would need to configure your router in order to allow outside traffic to your website and register a domain name.

Since I like to do some testing I typically have various versions of Moodle installed (which is similar to what you are calling an instance). One thing you can do is simply put one instance in one directory and another instance in another. In that case I would call http://borrow/moodle16 or http://borrow/moodle17 for the second instance. I'm not sure about the details of setting up a virtual host in Apache but if you look in the documentation it should become fairly obvious. The more specific you can be about what you would like to accomplish the more likely someone will be able to provide a set of step by step instructions to accomplish it. I have been very impressed by the generosity and responsiveness of the members of the Moodle community. I hope that this helps get your started. Best of luck and Happy Moodilng!
I svar til Mahipal Ramachandran

Re: Moodle Information

ved Visvanath Ratnaweera -
Billede af Particularly helpful Moodlers Billede af Translators
Hi Mahipal

From Anthony's detailed answer you can see that there are many ways of doing what you want. I just want to highlight the simpletest way:

- copy Moodle-files to directories like moodle1/, moodle2/, etc.

- create different databases, say moodle1, moodle2, with corresponding user(s)

- create different Moodle-data directories, say moodledata1/, moodledata2/, ...

- point a browser to http://your.ip/moodle1 to get the first instance configured, then go to httpd://your.ip/moodle2 etc.

One advice though: This is perfect for testing and evaluation. But once it comes to running a production server, you cant beat LAMP http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29 whether in terms of saved licence fees, aquired server and netwoking know-how in your staff, or above all, in terms of the support you get free-of-charge in this site! blinker

May be one day one you won't be able to run a production server on Linux. But it is an investment well worth trying. Changing to Linux is even considered an "upgrade" in this forum: http://moodle.org/mod/forum/discuss.php?d=50840 !

I have done some work in your part of the world (in fact, it is not far from where I come from) and hope to come back soon with a new idea.