# Turn on rewrites.
RewriteEngine on
# Only apply to URLs on this domain
RewriteCond %{HTTP_HOST} ^(www.)?mysite.com$
# Only apply to URLs that aren’t already under folder.
RewriteCond %{REQUEST_URI} !^/moodledir/
# Don’t apply to URLs that go to existing files or folders.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all those to insert /folder.
RewriteRule ^(.*)$ /moodledir/$1
# Also redirect the root folder.
RewriteCond %{HTTP_HOST} ^(www.)?mysite.com$
RewriteRule [...]

1. Copy all files from the root of your Moodle installation and the moodle data directory.
#rsync -av -e ssh sourse/ username@newserver.com:/path/to/destination/
2. Dump your Moodle database and import it it new server
#mysqldump –allow-keywords –opt -uMySQL_USERNAME -pPASSWORD DATABASE | ssh username@newserver.com “mysql -uMySQL_USERNAME -pPASSWORD DATABASE”
3. Edit config.php to update all database access details, file paths and web [...]

Sshfs is used for viewing and exploring remote file system as if it was your local machine. It is pretty simple to setup
#yum install sshfs fuse-sshfs
Once you have installed sshfs we can use it to connect to any server which allows ssh access
#mkdir /mnt/moodle_server
#sshfs user@server.com:/home/abcd/public_html/moodle /mnt/moodle_server/
Enter password and you re done.
Now lets say we want [...]

keep looking »