How To Move the Platform

Moving LiteCart is as simple as it can get. First move the data. Then update the configurations.

1. Copy Database

If you intend to change database. Use your favourite MySQL database manager e.g. phpMyAdmin to export your current database to an SQL file. Then import that SQL file into your new location.

2. Copy Files

To transfer the files from one machine to another web hosts offer a file transfer service called FTP. To connect over FTP you need an FTP Client, example FileZilla, FlashFXP, or RaiDrive.

To move LiteCart from one place to another. All you need to do is copy the complete set of files and folders of your LiteCart installation to the new web space.

If you are a CLI user you can use these commands to transfer the files from a remote machine:

Using WGET:

cd /local/path/to/webspace wget -m ftp://username:password@oldftpdomain.com/remote/path/to/litecart

Using LFTP:

lftp -c "set  -a; \
open ftp://user:password@your.oldftp.com; \
lcd /local/path/to/webspace; \
cd /remote/path/to/litecart; \
mirror --reverse --delete --verbose \
--allow-suid --no-umask --parallel=2" 

3. Adjusting Configurations

After transferring the files to the new web space. You then need to edit the following files in LiteCart:

.htaccess:


ErrorDocument 403
/webpath/to/application/error_document?code=403 ErrorDocument 404
/webpath/to/application/error_document?code=404 ErrorDocument 410
/webpath/to/application/error_document?code=410

...

RewriteBase /webpath/to/application/

The webpath to the application is / if you installed litecart in the domain's document root. It's /subfolder/ if you installed it in a subfolder under the domain's document root.

If you also moved database then put the new credentials in the config file:

includes/config.inc.php:


 define('DB_SERVER', 'my.newmysqlserver.com');
 define('DB_USERNAME', 'mynewusername');
 define('DB_PASSWORD', 'mynewpassword');
 define('DB_DATABASE', 'mynewdatabase');
 define('DB_TABLE_PREFIX', 'lc_');

See Also

Revisions

Top Editors
Recently Edited Articles