Moving Aiki Sites
From Aikiframework wiki
|
Mover Method for Moving a Site
This method is for actually moving a site, but also updating the config options inside the database.
- Dump your database
- rsync or cp your entire web root to its new location
- Update the /PATH/TO/SITE/config.php for the new installation
- git clone or add as a git submodule: https://github.com/aikilab/apps-mover
- Follow instructions to create the config options you need to update.
- Run the http://yoursite.com/assets/apps/mover/mover.php
- You can move this config.php out of the way or remove the mover app
- Your site should be good to function!
NOTE: There might be other issues with your move like permissions on upload folders, and so forth. Also, you can change on-disk /PATH/TO/SITE/config.php options like $config['url'], but those are not saved in the database. I like to cleanup inside the database and keep configs minimal where possible.
Dangerous Way to Move a Site
WARNING: Be careful and make sure the new domain is mapped to the aiki instance before completing this action, as it might break your aiki instance and you will have to repair it by issuing SQL commands.
- Login as an admin to your aiki instance
- In the upper left-hand window, click System
- Click on the left-hand window pane, "global_settings"
- On the field entry "url", change the url to the new one.
- Click save.
- Visit the new url to confirm the change worked.
Christopher Method for Moving a Site
So, you're ready to move your site online from your local installation or you want to capture an online site to install offline. How? These instructions assume you have and know how to use phpmyadmin, but if not you know how to throw mysql dump commands.
To easily and painlessly reinstall a site, most can follow the directions below.
- Create a dump file of the following tables (In phpmyadmin, select the aiki database, and click "Export"):
aiki_forms aiki_sites aiki_widgets
- Install a 'fresh' copy of Aiki on web server and follow normal installation instructions.
- Import file created in step 1, using phpmyadmin or the command line.
Other tables that have been created can be imported, you'll want to only import tables that are different from the default installation.
Optionally you can export your users/ and user groups, be wary of selecting a username in this case, all old log ins will work.
The point is to not import aiki_config, aiki_redirects, or other tables that haven't been modified since installation. Data in aiki_config is created during the installation procedure and is specific to the server that it is installed on.

