Post by whitecollar » Thu Oct 08, 2009 6:50 pm

Hello, I am attempting to migrate my shop to a new host.

I have successfully copied the database across using phpMYADMIN.
I then copied the entire opencart tree across to the new host.
I then edited the config.php and admin/config.php to reflect the new database name, password etc AND the new paths for the defined constants.

Please not that I have not included my domain yet as I want the shop on the new host to be up and running, and then I will just switch where the domain points to, thus minimising the shop down time.

However I get this error when trying to load the store on the new host:

http://69.175.44.210/~easypyr1/

I have included copies of my config.php and admin/config.php below.

config.php

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://69.175.44.210/~easypyr1/');
define('HTTP_IMAGE', 'http://69.175.44.210/~easypyr1/image/');

// HTTPS
define('HTTPS_SERVER', '');
define('HTTPS_IMAGE', '');

// DIR
define('DIR_APPLICATION', 'http://69.175.44.210/~easypyr1/catalog/');
define('DIR_SYSTEM', 'http://69.175.44.210/~easypyr1/system/');
define('DIR_DATABASE', 'http://69.175.44.210/~easypyr1/system/database/');
define('DIR_LANGUAGE', 'http://69.175.44.210/~easypyr1/catalog/language/');
define('DIR_TEMPLATE', 'http://69.175.44.210/~easypyr1/catalog/view/theme/');
define('DIR_CONFIG', 'http://69.175.44.210/~easypyr1/system/config/');
define('DIR_IMAGE', 'http://69.175.44.210/~easypyr1/image/');
define('DIR_CACHE', 'http://69.175.44.210/~easypyr1/system/cache/');
define('DIR_DOWNLOAD', 'http://69.175.44.210/~easypyr1/download/');
define('DIR_LOGS', 'http://69.175.44.210/~easypyr1/system/logs/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'easypyr1_easypyro');
define('DB_PASSWORD', 'xxxxxxxxx');
define('DB_DATABASE', 'easypyr1_db1');
define('DB_PREFIX', '');
?>
admin/config.php

Code: Select all

[<?php
// HTTP
define('HTTP_SERVER', 'http://69.175.44.210/~easypyr1/admin/');
define('HTTP_CATALOG', 'http://69.175.44.210/~easypyr1/');
define('HTTP_IMAGE', 'http://69.175.44.210/~easypyr1/image/');

// HTTPS
define('HTTPS_SERVER', '');
define('HTTPS_IMAGE', '');

// DIR
define('DIR_APPLICATION', 'http://69.175.44.210/~easypyr1/admin/');
define('DIR_SYSTEM', 'http://69.175.44.210/~easypyr1/system/');
define('DIR_DATABASE', 'http://69.175.44.210/~easypyr1/system/database/');
define('DIR_LANGUAGE', 'http://69.175.44.210/~easypyr1/admin/language/');
define('DIR_TEMPLATE', 'http://69.175.44.210/~easypyr1/admin/view/template/');
define('DIR_CONFIG', 'http://69.175.44.210/~easypyr1/system/config/');
define('DIR_IMAGE', 'http://69.175.44.210/~easypyr1/image/');
define('DIR_CACHE', 'http://69.175.44.210/~easypyr1/system/cache/');
define('DIR_DOWNLOAD', 'http://69.175.44.210/~easypyr1/download/');
define('DIR_LOGS', 'http://69.175.44.210/~easypyr1/system/logs/');
define('DIR_CATALOG', 'http://69.175.44.210/~easypyr1/catalog/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'easypyr1_easypyro');
define('DB_PASSWORD', 'xxxxxxxxx');
define('DB_DATABASE', 'easypyr1_db1');
define('DB_PREFIX', '');
?>
Please can someone provide assistance?

Thank you,
Andrew.

New member

Posts

Joined
Wed Sep 09, 2009 10:31 pm

Post by whitecollar » Thu Oct 08, 2009 8:42 pm

p.s. I have checked my PHP info http://69.175.44.210/~easypyr1/phpinfo.php and URL File Access is ENABLED, not disabled as the error would suggest.

I'm really stuck with this ...

New member

Posts

Joined
Wed Sep 09, 2009 10:31 pm

Post by whitecollar » Thu Oct 08, 2009 10:50 pm

Ok, I've managed to get this working ... justhost has a small bug in their info pages where DBusername = DBname and vice versa. It's always something small ... :-/

New member

Posts

Joined
Wed Sep 09, 2009 10:31 pm

Post by readyman » Sun Oct 18, 2009 1:44 am

Your configs are wrong. Some of these are meant to be paths, not urls. Try the following instead.

Code: Select all

    <?php
    // HTTP
    define('HTTP_SERVER', 'http://69.175.44.210/~easypyr1/');
    define('HTTP_IMAGE', 'http://69.175.44.210/~easypyr1/image/');

    // HTTPS
    define('HTTPS_SERVER', '');
    define('HTTPS_IMAGE', '');

    // DIR
    define('DIR_APPLICATION', '/home/easypyr1/public_html/catalog/');
    define('DIR_SYSTEM', '/home/easypyr1/public_html/system/');
    define('DIR_DATABASE', '/home/easypyr1/public_html/system/database/');
    define('DIR_LANGUAGE', '/home/easypyr1/public_html/catalog/language/');
    define('DIR_TEMPLATE', '/home/easypyr1/public_html/catalog/view/theme/');
    define('DIR_CONFIG', '/home/easypyr1/public_html/system/config/');
    define('DIR_IMAGE', '/home/easypyr1/public_html/image/');
    define('DIR_CACHE', '/home/easypyr1/public_html/system/cache/');
    define('DIR_DOWNLOAD', '/home/easypyr1/public_html/download/');
    define('DIR_LOGS', '/home/easypyr1/public_html/system/logs/');

    // DB
    define('DB_DRIVER', 'mysql');
    define('DB_HOSTNAME', 'localhost');
    define('DB_USERNAME', 'easypyr1_easypyro');
    define('DB_PASSWORD', 'xxxxxxxxx');
    define('DB_DATABASE', 'easypyr1_db1');
    define('DB_PREFIX', '');
    ?>

http://www.alreadymade.com
Follow me on twitter.com/alreadymade


User avatar
Global Moderator

Posts

Joined
Wed May 20, 2009 5:16 am
Location - Sydney
Who is online

Users browsing this forum: No registered users and 4 guests