Documentos de Académico
Documentos de Profesional
Documentos de Cultura
To move your Mambo site from either one folder to another or one server to
another, here are a few basics.
Quote:
$mosConfig_user = 'mambo_mambo';
$mosConfig_password = 'password';
$mosConfig_db = 'mambo_mambo';
$mosConfig_absolute_path = '/home/mambo/public_html';
$mosConfig_live_site = 'http://www.mamboserver.com';
$mosConfig_cachepath = '/your absolute path/cache';
Note: You may also need to ensure you have configured your .htaccess file in the
new location.
Assumptions:
Config.php settings are still:
$CFG->dirroot = '/var/www/html/moodle';
$CFG->dataroot = '/var/www/moodledata/moodledata';
$CFG->dbname = '<yourDBname>';
$CFG->dbuser = '<youruser>';
Backup is set to run following script
cd /var/www/moodledata
mv <yourDBname>.sql.gz <yourDBname>-old.gz
mysqldump -h localhost --add-drop-table -u root --password='<???????>' -C
-Q -e -a <yourDBname>.sql
gzip <yourDBname>.sql
1. Download and unzip latest stable moodle version on (2). Do not run this version
at this stage.
2. If they exist then Delete all files from /var/www/moodledata/moodledata on (2)
(make sure that this is the target and not the source!)
3. Start mysql as root on (2) and type:
Drop database “<yourDBname>”;
Create database “<yourDBname>”;
GRANT Select, Insert, Update,Delete,Create,Drop, Index, Alter on
<yourDBname>.* to <youruser>@localhost identified by
‘<currentpassword>’;
exit
4. mysqladmin –p reload
5. Set maintenance mode on (1)
On (2) use
#!/bin/bash
cd /var/www/moodledata
mv <yourDBname>.sql.gz <yourDBname>-old.gz
mysqldump -h localhost -u root -C -Q -e -a <yourDBname> >
<yourDBname>.sql
gzip <yourDBname>.sql