Moving "MODx" Website
- short tutorial - How To Move a MODx website
- does not cover already installed and configured plug-ins
- take care of your own changes in your source code added (plug-ins, templates or ... the core :))
1) Preparation:
Have your website and database restored to new location.
Have your details of mysql database:
-hostname
-database name
-username (to access database)
-password (to access database)
-Backup database from old location in a file. Take care of its size because on new location may be size restriction. Do not include name of database (do no check 'add drop database statement')
-Restore database in new location as it was in the old location.
2) Edit configuration file.
It is: /manager/include/config.inc.php
Look for the following lines and change details according to your real details
$database_server = 'localhost';
$database_user = 'database username';
$database_password = 'password';
$dbase = 'database name';
After you have done changes do not forget to save.
3) Changing website settings
Now you should be able to go in admin interface:
http://www.yoursite_url/manager/ (or whatever it is)
Log in (username and password are the same like in the old location)
Make the following changes:
Tools->Configuration
Interface & Features
Resource path:
write your absolute path according to your new location
Resource URL:
write your url according to your new location
File Manager
File Manager Path:
write your absolute path according to your new location
4) Changing file permission
Change files permissions only if you need to.
However if you will try to change file content or to add / delete images the system will tell you exactly what folders and file must have write permission.
Useful tips
1) Locations good to know
-Login file
file : manager/media/style/YOURTEMPLATE/login.html
-Access control
accesscontrol.php checks to see if the user is logged in. If not, a log in form is shown
file: manager/index.php line 151
On line 151 (or search it)
include_once "accesscontrol.inc.php";
-Lost password file
assets/snippets/weblogin12/webloginmade/weblogin.processor.inc.php
2) Change passwords dirrect into database
- generate a password using md5() from php
- keep in mind the password and copy the encrypted version of that password
- get into your website database (phpMyAdmin for example)
- browse "members" table and edit that record you want.
For example if you wish to change "manager" password, edit itsrecord.
- paste the encrypted password into "password" field.
- save it.
Now you will be able to login into management interface using manager and the new password.
CMS: MODX CMS
