+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 27 of 27
Virtual Learning Platforms Thread, Moving moodle? in Technical; http://en.wikipedia.org/wiki/Reverse_proxy This is normally done with the apache mod_proxy, basically you configure the LEA virtual server to forward all http ...
  1. #16


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    338

    Re: Moving moodle?

    http://en.wikipedia.org/wiki/Reverse_proxy

    This is normally done with the apache mod_proxy, basically you configure the LEA virtual server to forward all http connections to your web server.

    heres an explanation if ssh tunneling, I'm not sure if you'd need to go to these lengths if the connection is'nt over the internet, but it can't hurt.

    http://www.rzg.mpg.de/networking/tunnelling.html


    specific to mysql
    http://www.whoopis.com/howtos/mysql_ssh_howto.html

  2. #17

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    143

    Re: Moving moodle?

    Awesome. Going to have a play tomorrow, see if I can crack this.

    Just one more question with reverse proxying, do you have to forward all http traffic, or can I select to forward only requests to certain areas, e.g http://www.nbc.medway.sch.uk/moodle could forward to my moodle server, where as www.nbc.medway.sch.uk/exchange can still be OWA as hosted on the virtual server already? hope you're with me there.

    Thanks for your help,

    Mike.

  3. #18

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,371
    Thank Post
    624
    Thanked 949 Times in 651 Posts
    Blog Entries
    2
    Rep Power
    317

    Re: Moving moodle?

    Maniac: Yes you can do virtual domains or directory aliases in Apache. We have several directories for Moodle, shared calendar, shared web pages. room booking etc. all going to different internal servers using the reverse proxy method.

  4. #19


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    338

    Re: Moving moodle?

    www.nbc.medway.sch.uk/moodle could forward to my moodle server, where as www.nbc.medway.sch.uk/exchange can still be OWA as hosted on the virtual server already? hope you're with me there.
    Yep , that's doable

    you do something like this in the httpd.conf

    Code:
    LoadModule proxy_module modules/mod_proxy.so
    
    ProxyPass /moodle/ http://your_server:port/location/
    ProxyPassReverse /moodle/ http://your_server:port/location


    documentation here:
    http://httpd.apache.org/docs/2.0/mod/mod_proxy.html

    this is also useful:
    http://www.apachetutor.org/admin/reverseproxies

  5. #20
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,942
    Thank Post
    230
    Thanked 48 Times in 44 Posts
    Blog Entries
    2
    Rep Power
    45

    Re: Moving moodle?

    Quote Originally Posted by Geoff
    There is no sane way to keep two MySQL servers in sync over a WAN link. Therein lies the path to pain, suffering, data corruption and the dark side of the force.
    Couldn't you rsync the files across to the backup server then restore the database nightly? I know this won't make the intranet version usable as a live system as any new data would be wiped out on every restore.

    Not sure of the point tho' as like has been said - why then keep 2 servers, why not just have the intranet server viewable from the web.

    Just a thought.

  6. #21

    Join Date
    Nov 2005
    Posts
    95
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Moving moodle?

    There is no sane way to keep two MySQL servers in sync over a WAN link. Therein lies the path to pain, suffering, data corruption and the dark side of the force.
    On my first read of this I assumed there would be only one MySQL server and both web servers would be set to use the same one.

    Sounds messy to me, and having one with external access seems to be a much more logical choice if you can get it working.

  7. #22

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    143

    Re: Moving moodle?

    There is a reason for me wanting two installations, the main one being reliability, and the second one being speed. Our internet connection provided by the LEA is not very reliable, keeps dropping out, running really slowly etc. and as it stands at the moment when the internet is down, the kids can't use moodle, which isn't really ideal, and also uploading work to it for grading is really slow, as it has to travel over the internet.

    If we exclusively hosted it on our intranet server on the school site, then the kids would be able to use it in school time with no problems, but we won't be able to have external access to this, as the LEA will not route internet traffic directly into the schools network. Insted for hosting services requiring external access, they provide us with a server at their datacentre which we can load any applications on that we require to be accessed from outside the school. This server can talk to our network and also be addressed externally.

    Why not host moodle just on the server at the LEA I hear you say? If this was our only installation, we would still be using our unreliable internet connection to access this server from within the school, and still have the issues of speed, so we'd be no better off than we are at the moment.

    What I want is one installation hosted in school to work 100% of the time regardless of wether the internet is working or not, and a second installation on our server at the LEA to handle all users who want to use it from home.

    It's a complex situation to explain, hope reading this you can understand why I might need two instances of it. I'm investigating using reverse proxying (as mentioned earlier on in this thread) to direct moodle traffic from my LEA provided server to the moodle server inside the school, but havn't got this working reliably eneough yet. If I can get this working, then this is the ultimate solution as it means I can get away with having only one instance that can be hosted inside the school.

    Mike.

  8. #23

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223

    Re: Moving moodle?

    Why don't you just fix your internet connection? Do you have a SLA with your LEA you can beat them to death with?

  9. #24

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    143

    Re: Moving moodle?

    Short answer, not that we can find!

    We are holding off on paying them this year, as the service has be so diabolical recently, we're going to try our best to negotiate a discount. We've had a total of over a weeks worth of downtime in the last 2 months, which is totally un-acceptable. It's not just this school affected, when it goes down, all schools in the LEA suffer, so there's obviously some serious issues that need addressing with their service.

    As I can't rely on the LEAs connection, I need to plan a solution that is as fail safe as possible and doesn't rely on the connection. We are planning to base most of the curriculum around moodle next year, so it's crucial it is 100% reliable during school time, hence the reason to have moodle hosted on-site. I also need to ensure it is accessible externally, hence the reason to need it on the second server too.

    Mike.

  10. #25


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    338

    Re: Moving moodle?

    A combo of database replication and rsync for files ?
    http://www.howtoforge.com/mysql_mast...er_replication
    http://samba.anu.edu.au/rsync/

    edit: link changed ops:

  11. #26
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,942
    Thank Post
    230
    Thanked 48 Times in 44 Posts
    Blog Entries
    2
    Rep Power
    45

    Re: Moving moodle?

    Sympathies Maniac.

    Remote connection in to your site is the only answer - and however you can get to that - you have to. Nothing else will do. Reverse proxy isn't _that_ hard for them to set up so external traffic can access your school Moodle externally, forget about the mirror server outside.

  12. #27

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    143

    Re: Moving moodle?

    I know it isn't that hard for them to do, but they won't no matter how hard we negitiate, the offical line from them is 'all services we want external access to have to be hosted on our server at their data centre.' They'll direct any number of ports to this server, just won't direct any to point to servers on the school site!

    I know I've got to get it working from one installation, just don't know how to achieve this yet with the available resources, and to maintain 100% reliability when used in-school together with as reliable as possible external access as well. The LEA definitely don't make it easy for me!

    Apparently one local school in the same LEA as me have got a workable solution in place, I'm getting the details on Monday and I'm going to arrange to go and see them and see how they've got theirs setup.

    Thanks for all your input guys,

    Mike.

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. 'Moving' office XP
    By witch in forum Educational Software
    Replies: 9
    Last Post: 1st July 2007, 08:34 AM
  2. Moving moodle to IIS
    By Quackers in forum Virtual Learning Platforms
    Replies: 3
    Last Post: 27th June 2007, 01:42 PM
  3. Moving On
    By Nij.UK in forum General Chat
    Replies: 5
    Last Post: 20th March 2007, 08:28 PM
  4. Moving IIS
    By Simcfc73 in forum Windows
    Replies: 1
    Last Post: 14th July 2006, 02:21 PM
  5. Moving to a New Job
    By pshuttle in forum General Chat
    Replies: 4
    Last Post: 17th March 2006, 06:14 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •