Move Moodle from remote server to local WAMP server

Re: Move Moodle from remote server to local WAMP server

by Zoltan Ordog -
Number of replies: 0

The content of moodle (only the content) folder is copied in the C:\wamp\www folder, the moodledata folder is copied like this : C:\wamp\www\moodledata 

The config file is :

<?php  // Moodle configuration file


unset($CFG);

global $CFG;

$CFG = new stdClass();


$CFG->dbtype    = 'mysqli';

$CFG->dblibrary = 'native';

$CFG->dbhost    = 'localhost';

$CFG->dbname    = 'databasename';

$CFG->dbuser    = 'username';

$CFG->dbpass    = 'password';

$CFG->prefix    = 'mdl_';

$CFG->dboptions = array (

  'dbpersist' => 0,

  'dbsocket' => 0,

);


$CFG->wwwroot   = 'http://localhost';


$CFG->dataroot  = 'C:\wamp\www\moodledata';

ini_set('error_log', $CFG->dataroot . '/log/error.' . date('Y.m') . '.log'); // error_log( "Hello, errors!" );

$CFG->admin     = 'admin';


$CFG->directorypermissions = 0777;


$CFG->passwordsaltmain = 'TnFvJpvL<fkA7i3zn=W_[0s$~';


$CFG->phpCourseEnable = array(); // MelcomSW modification for php file execution

$CFG->phpCourseEnable[1440] = 1;

$CFG->phpCourseEnable[1517] = 1;


require_once(dirname(__FILE__) . '/lib/setup.php');


// There is no php closing tag in this file,

// it is intentional because it prevents trailing whitespace problems!



Like I said before , everything is working the css, the administrator panel ....only the images and the swf-s course material is not loaded ...

That sym link creation in my filesystem can you explain me how to do it