Post by nemo-55 » Wed Sep 23, 2015 3:45 am

I'm attempting to change both servers and websites, and move my opencart store to the new site. I have absolutely no idea how to begin doing that without starting over completely.

Newbie

Posts

Joined
Sun Sep 20, 2015 5:33 am

Post by IP_CAM » Wed Sep 23, 2015 4:25 am

USE your HOST ACCESS Server MyPHP/MySql-ADMIN, to create and DOWNLOAD an ENTIRE COPY of your OC Database.
This is the UPMOST IMPORTANT Step, to have/keep your most valuable Data.

On your NEW Server, CREATE a NEW DATABASE, by USE of the SAME Credentials, as shown in your CONFIG.PHP Files, including the DB_prefix 'oc_', if this is a predefined Value, when creating the DB!

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'my.mysql.db.internal');
define('DB_USERNAME', 'a_shop123');
define('DB_PASSWORD', 'abcdegfwe335');
define('DB_DATABASE', 'mynew_db');
define('DB_PREFIX', 'oc_');
(or whatever you already have/USE in your Setup!!)

If the NEW DB exits, UPLOAD your existing DB into your newly created Server DB by use of the PHP Admin/MySql Admin Import Functions.

If you are not sure, ask your HOSTER (or one of the Pro's around here) to set up and install the DB, and it's data, for YOU! ;)
-----
STEP2
-----
Do you have/use an FTP UP-Download-Client on your Windows?

if so:

a. Open your Site with your FTP Client, direct you to your Server SHOP Section.
b. FInd the shop/vqmod/vqcache/ Subdirectory, and remove/delete it's entire Content.
c. Find the shop/system/cache/ Subdirectory, and remove/delete it's entire Content.
d. Find the shop/image/cache/ Subdirectory, and remove/delete it's entire Content.
e. DOWNLOAD the entire SHOP Directory Content , in ONE STEP, to your PC.

---

2. REDEFINE the Server Paths in BOTH config.php files to match the new server Environment.

SAMPLE SHOP ROOT SECTION:

Code: Select all

// DIR
define('DIR_APPLICATION', '/home/jacob/www/a_shop/cart/catalog/');
define('DIR_SYSTEM', '/home/jacob/www/a_shop/cart/system/');
define('DIR_DATABASE', '/home/jacob/www/a_shop/cart/system/database/');
define('DIR_LANGUAGE', '/home/jacob/www/a_shop/cart/catalog/language/');
define('DIR_TEMPLATE', '/home/jacob/www/a_shop/cart/catalog/view/theme/');
define('DIR_CONFIG', '/home/jacob/www/a_shop/cart/system/config/');
define('DIR_IMAGE', '/home/jacob/www/a_shop/cart/image/');
define('DIR_CACHE', '/home/jacob/www/a_shop/cart/system/cache/');
define('DIR_DOWNLOAD', '/home/jacob/www/a_shop/cart/download/');
define('DIR_LOGS', '/home/jacob/www/a_shop/cart/system/logs/');
SAMPLE SHOP ADMIN SECTION:

Code: Select all

// DIR
define('DIR_APPLICATION', '/home/jacob/www/a_shop/cart/admin/');
define('DIR_SYSTEM', '/home/jacob/www/a_shop/cart/system/');
define('DIR_DATABASE', '/home/jacob/www/a_shop/cart/system/database/');
define('DIR_LANGUAGE', '/home/jacob/www/a_shop/cart/admin/language/');
define('DIR_TEMPLATE', '/home/jacob/www/a_shop/cart/admin/view/template/');
define('DIR_CONFIG', '/home/jacob/www/a_shop/cart/system/config/');
define('DIR_IMAGE', '/home/jacob/www/a_shop/cart/image/');
define('DIR_CACHE', '/home/jacob/www/a_shop/cart/system/cache/');
define('DIR_DOWNLOAD', '/home/jacob/www/a_shop/cart/download/');
define('DIR_LOGS', '/home/jacob/www/a_shop/cart/system/logs/');
define('DIR_CATALOG', '/home/jacob/www/a_shop/cart/catalog/');
---

3. UPLOAD the entire SHOP Directory, Content including the rewritten config.php files onto your new Server.
If you also use a new Site Name, make sure to also change their config.php values accordingly!!

4. DOWNLOAD THE LATEST VqMod Version 2.5, UNZIP it on your PC, and UPLOAD/implement the unzipped Content, correctly, as advised, onto your new Shop, again by use of your FTP Client.
Then, activate/install it by using a LINK LIKE: http.//yourshop.com/shop/vqmod/install/index.php

5. NOW, test your Shop Admin, log in as usual, check the VqMod Admin Tool you use, if all VqMod's are active and working without errors. Also test the Admin System Error Page, and then, NOT BEFORE, start your Shop from the Admin Link, check it, and come back and tell us, it you followed the Rules, and what came out... ;D

6. Good Luck
Ernie
openshop.li/cart/
Last edited by IP_CAM on Wed Sep 23, 2015 5:02 am, edited 5 times in total.

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by victorj » Wed Sep 23, 2015 4:57 am

first using ftp download all files from your old server, dont be shy download it twice to different locations.

next use your server panel en go to phpmyadmin
export database, here also dont be shy and download 2 times as above.

next prepare your new hosting, upload all downloaded files from your old hosting.

Check wich version of oc you are running (see admin screen) and dwonload a fresh copy of your version on this site.
just upload the install folder located in upload.

next locate config.php in root
edit and reove all entrys save and upload
locate config.php in folder admin edit and remove all entrys, save and upload.

use your hosting panel to create a new database, database user etc record database name user name and password.

now go to your new hosting and installer will start, go through steps and finish install.

go back to hosting panel and locate phpmyadmin
select created database, select all tables and remove them.
import your old database you exported from old hosting and import in database.

now your site is up and running on new hosting.

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by EvolveWebHosting » Wed Sep 30, 2015 10:57 am

nemo-55 wrote:I'm attempting to change both servers and websites, and move my opencart store to the new site. I have absolutely no idea how to begin doing that without starting over completely.
Your new hosting company won't assist? If it's cPanel to cPanel, it's really easy to do.

Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhosting.com


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA
Who is online

Users browsing this forum: No registered users and 28 guests