This is a draft cheat sheet. It is a work in progress and is not finished yet.
Database backup$ mysqldump --opt -u [uname] -p[pass] [dbname] > [backupfile.sql]
[uname] Your database username
[pass] The password for your database (note there is no space between -p and the password)
[dbname] The name of your database
[backupfile.sql] The filename for your database backup
[--opt] The mysqldump option
|
Backup File Structuretar -czf ~/backup/meadowsah.tar.gz home/
|
| | Update new versionDownload latest version of ModX revolution | Extract it | Copy files over the top of previous installation | Access /setup to run through the upgrade process. |
| | Root .htaccessRewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?host.com$
RewriteRule ^(/)?$ home [L]
change host to the domain name.
|
.htaccess for home folderRewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?subdomain.domain.net$
RewriteRule ^(.*)$ http://www.domain.com/home/$1 [R=301,L]
RewriteBase /
change domain and subdomain to the relevant domain names to ensure that the correct URL is used to load the pages
|
|