Changing the Server - Moving SOTESHOP to a Different Server

Table of Contents

Moving SOTESHOP 8 Store

  1. Pack the store directory,

    See how to pack SOTESHOP 8 store.

  2. Copy the packed store to the new server,
  3. Unpack the store package,

    See how to unpack SOTESHOP 8 store.

  4. Redirect the domain to the store directory,
    • Store installed from the standard installation package (with the core/ directory) - just unpack in the domain directory
    • Store installed from the administrative installation package (without the core/ directory) - the domain/subdomain should be redirected to the store directory path_to_shop/soteshop/web
  5. In case of having a store with the core/ directory, verify if the web/ directory is a symbolic link (if you have a store without the core/ directory, go to point 6.)
    1. Go to the core/ directory
    2. Check if the web directory is a symbolic link

      Opening this directory should take the user back to the directory above, which contains the core/ folder and the files index.php, backend.php and update.php

    3. If the web directory is not a symbolic link, it must be created. See how Create a symbolic link web
  6. Transfer the database,
  7. Delete the entire content of the /soteshop/cache directory (in the case of a standard installation package - delete the entire content of the /soteshop/core/cache directory),
  8. In the browser, enter the address of the update panel, e.g.
    http://www.adres-twojego-sklepu.pl/update.php
    Soteshop update panel login screen
  9. Log in. The login data to the update panel does not change, Panel aktualizacji z komunikatem o wykryciu zmiany serwera
  10. Click on the link Update database access, Database connection reconfiguration form
  11. Enter the data for the new database and press the Save button, Message about successful reconfiguration of the database connection
  12. In the browser, enter the address http://www.adres-twojego-sklepu.pl/update.php/installerweb/task

    You will call the command line from the update panel.

    • Enter in the field: cc and press ENTER, Command cc
    • Enter in the field: fcc and press ENTER, Polecenie fcc

    In order to clear the store's cache.

Packing SOTESHOP store

Packing from the browser

  1. In the /soteshop directory, create a file pack.php and fill it with the code:
    
    <?php
       system("/bin/tar -zcf nazwa_pliku.tar.gz soteshop/");
    ?>
            
  2. Redirect the domain to the directory where the /soteshop directory and the pack.php file are located,
  3. In the browser, enter the domain (set in point 2) e.g. http://www.adres-twojego-sklepu.pl/pack.php

    The packing script will be launched.

Packing from the console

  1. Log in to FTP via SSH,
  2. Call the command:
    
    tar -zcf nazwa_pliku.tar.gz soteshop/
            

Other

If you cannot perform the operation from the above points, contact the server administrator for help in packing the store.

Unpacking SOTESHOP 8 store

Unpacking from the browser

  1. In the location of the packed store, create a file unpack.php and fill it with the code:
    
    <?php
       system("/bin/tar -zxvpf ./nazwa_pliku.tar.gz");
    ?>
            
  2. Redirect the domain to the directory where the packed store and the unpack.php file are located,
  3. In the browser, enter the domain (set in point 2) e.g. http://www.your-store-address.pl/unpack.php

    The unpacking script will be launched.

Unpacking from the console

  1. Log in to FTP via SSH,
  2. Call the command:
    
    tar -zxvpf file_name.tar.gz
            

    The store must be unpacked with the user's permissions.

Other

If you cannot perform the operations from the above points, contact the server administrator for help in unpacking the store. You must inform the administrator that:

The store must be unpacked with the user's permissions (the administrator should not unpack the store from the root level).

Creating a symbolic link

There are 3 ways to create a symbolic link web:

  • Using the SSH console,
    1. In the SSH console, go to the core directory
    2. Delete the web directory by entering the command
      rm -r web
    3. Create a symbolic link by entering the command
      ln -s ../ web
  • Using a PHP file,
    1. Create a file in the main store directory (where the core directory and the index.php file are located) called create-symlink.php
      602
    2. Edit the file and fill it with the following content:
              
      <?php
      symlink('../', __DIR__.'/core/web');
      ?>
              
          
    3. Delete the core/web/ directory
    4. In the browser, enter the address http://www.adres-twojego-sklepu.pl/create-symlink.php
  • Ask the server administrator to create a symbolic link according to this instruction.

SOTE YouTube

Stay up to date with the latest SOTESHOP program updates. Subscribe to the SOTE YouTube channel.