+ Post New Thread
Results 1 to 4 of 4
Windows Server 2008 R2 Thread, Move Moodle To A SubDomain in Technical; Hi there Could someone tell me how I could move our Moodle install to a subdomain? Moodle is on the ...
  1. #1
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    26

    Move Moodle To A SubDomain

    Hi there

    Could someone tell me how I could move our Moodle install to a subdomain?

    Moodle is on the same server as our school website (in a sub directory)

    We are running IIS.

    So what setup do I need to do in

    - Moodle

    - IIS

    - Internal DNS Servers

    - External DNS Server (123Reg)


    Many Thanks!

  2. #2

    Join Date
    Apr 2008
    Posts
    853
    Thank Post
    111
    Thanked 112 Times in 108 Posts
    Rep Power
    46
    external sub domain? easy as pie

    go into local DNS and change A record for sub domain, the go into iis and chnage the binding to new sub domain then in external DNS change the A record

  3. #3
    penfold_99's Avatar
    Join Date
    Feb 2008
    Location
    East Sussex
    Posts
    1,003
    Thank Post
    60
    Thanked 167 Times in 119 Posts
    Rep Power
    69
    You would also need to update your moodle config.php with your new URL for the site. This could also break any hardcoded links on the site to files and resources, this could be managed with filters if it's a big problem.

  4. #4
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    26
    Ok this is what I have done but have problems

    Copied our moodle installed folder to C:\wwwvle

    Edited our moodle config file, settings are below

    <?php /// Moodle Configuration File

    unset($CFG);

    $CFG->dbtype = 'mysql';

    $CFG->dbhost = 'localhost';

    $CFG->dbname = 'moodle';

    $CFG->dbuser = 'root';

    $CFG->dbpass = 'fakepassword';

    $CFG->dbpersist = false;

    $CFG->prefix = 'mdl_';

    $CFG->wwwroot = 'http://vle.theockendonacademy.com';

    $CFG->dirroot = 'C:\wwwvle';

    $CFG->dataroot = 'C:\inetpub\vledata';

    $CFG->admin = 'admin';

    $CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode

    require_once("$CFG->dirroot/lib/setup.php");

    // MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,

    // RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.


    Made a new website in IIS with the following settings
    - Site Name = VLE
    - Physical Path = C:\wwwvle
    - Host Name = vle.theockendonacademy.com

    Made a record in DNS - vle.theockendonacademy.com with IP of server

    Made a record in 123Reg - vle with external IP address of server

    Ping vle.theockendonacademy.com - This pings correctlly


    How ever when I go to the web address it redirects to theockendonacademy.com/wordpress, this is our website address

    I do have at the momment a wordpress muiltsite setup, but at the momment as im still creating the new site on this, I have set the root of the default website to have html file as the default file with a index.php that redirects to theockendonacademy.com/wordpress, as the new website (Wordpress Mutilsite) is in the root of the server.

    Also for the Wordpress Mulitisite I set * A records to both the internal and 123reg DNS servers


    Cheers



SHARE:
+ Post New Thread

Similar Threads

  1. Moodle & Google Apps integration by Moodle Rooms - anyone using it?
    By morganw in forum Virtual Learning Platforms
    Replies: 4
    Last Post: 1st April 2011, 01:51 PM
  2. Replies: 3
    Last Post: 29th November 2010, 02:10 PM
  3. Replies: 4
    Last Post: 16th September 2010, 02:06 PM
  4. create subdomain on school website
    By adamchapman in forum Web Development
    Replies: 2
    Last Post: 26th July 2008, 06:24 PM
  5. Replies: 2
    Last Post: 22nd February 2006, 01:30 AM

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
  •