+ Post New Thread
Results 1 to 6 of 6
*nix Thread, Moving Moodle in Technical; A while back I set up Moodle on an old desktop for a couple of teachers to use. These teachers ...
  1. #1

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241

    Moving Moodle

    A while back I set up Moodle on an old desktop for a couple of teachers to use. These teachers fell in love with it straight away, and we are now using Moodle for our entire Music & Key Skills subjects. I decided to get the Moodle setup of an old desktop and stick it on a VM on hardware a little more reliable, I thought it would be better to do this now before another department falls in love with it.

    So, I went about setting up my VM with Ubuntu 8.04 on it, and installed all the software required for Moodle. Next, I set up SMB shares on the old and new servers, and copied ALL the files/folders in 'www' and 'moodledata' from the old desktop to the new VM. I also exported the db and imported it into the new setup.

    Finally, I turned the old desktop off and changed the IP of the new VM to that of the old desktop (so it was sitting exactly in his place - so we don't have to change the external route for the IP address.)

    Anyhow, browsing to internal IP or moodle . domain . com works fine, but browsing to external address/IP throws a connection refused error. What is the matter with this? It's a problem somewhere on the new box as I turned it off, put the old one back on and it worked fine. I just don't know where?

  2. #2


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    is apache listening on the external connection?
    (netstat -nl)
    is the firewall blocking http on the external?

  3. #3

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by CyberNerd View Post
    is apache listening on the external connection?
    (netstat -nl)
    Here's the output of the old desktop (the one that works externally):

    Code:
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State
    tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:81              0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN
    tcp6       0      0 :::22                   :::*                    LISTEN
    udp        0      0 10.33.225.248:137       0.0.0.0:*
    udp        0      0 0.0.0.0:137             0.0.0.0:*
    udp        0      0 10.33.225.248:138       0.0.0.0:*
    udp        0      0 0.0.0.0:138             0.0.0.0:*
    udp        0      0 0.0.0.0:10000           0.0.0.0:*
    Active UNIX domain sockets (only servers)
    Proto RefCnt Flags       Type       State         I-Node   Path
    unix  2      [ ACC ]     STREAM     LISTENING     11104    /var/run/mysqld/mysql
    And here's the output of the new one:
    Code:
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State
    tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN
    tcp6       0      0 :::22                   :::*                    LISTEN
    udp        0      0 10.33.225.248:137       0.0.0.0:*
    udp        0      0 0.0.0.0:137             0.0.0.0:*
    udp        0      0 10.33.225.248:138       0.0.0.0:*
    udp        0      0 0.0.0.0:138             0.0.0.0:*
    udp        0      0 0.0.0.0:10000           0.0.0.0:*
    Active UNIX domain sockets (only servers)
    Proto RefCnt Flags       Type       State         I-Node   Path
    unix  2      [ ACC ]     STREAM     LISTENING     10758    /var/run/mysqld/mysql                                                                             d.sock
    Quote Originally Posted by CyberNerd View Post
    is the firewall blocking http on the external?
    Our firewall routes the server that works fine, so I doubt it's a problem with that...

  4. #4


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    Code:
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
    that looks ok.
    I assume it has an external network card, that is up and configured with an external IP (ifconfig)

  5. #5


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    did you copy the original apache config file over?
    I think you should. I noticed this
    Code:
    tcp        0      0 0.0.0.0:81              0.0.0.0:*               LISTEN
    in your old config, perhaps the firewall is still forwarding to port 81

  6. Thanks to CyberNerd from:

    Hightower (7th July 2009)

  7. #6

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Duh, it's all coming back to me now. We needed to set it up so external address routed to port 81. Changing the config now (and making a BIG note of it!).

    Thanks!

SHARE:
+ Post New Thread

Similar Threads

  1. Moodle - Word template to create Moodle XML Quiz
    By lasercat in forum Virtual Learning Platforms
    Replies: 4
    Last Post: 25th October 2010, 12:19 PM
  2. Moving away from RM
    By MJoyeux in forum Wireless Networks
    Replies: 22
    Last Post: 10th May 2010, 01:30 PM
  3. Moving Moodle!
    By witch in forum Virtual Learning Platforms
    Replies: 45
    Last Post: 1st July 2009, 08:42 AM
  4. Moving moodle to IIS
    By Quackers in forum Virtual Learning Platforms
    Replies: 3
    Last Post: 27th June 2007, 01:42 PM
  5. Moving moodle?
    By maniac in forum Virtual Learning Platforms
    Replies: 26
    Last Post: 17th March 2007, 10:09 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
  •