User Tools

  • (Use the same account as the official website)

Site Tools


how_to_move_the_platform

How To Move the Platform

Moving LiteCart is as simple as it can get. Move the files. Then update the configurations.

Transfer 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 move 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 ftp:list-options -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"

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/error_document?code=403
ErrorDocument 404 /webpath/to/error_document?code=404
ErrorDocument 410 /webpath/to/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

how_to_move_the_platform.txt · Last modified: 2023/01/20 09:41 by tim