Post by olahmyde » Sun Sep 23, 2018 9:14 am

Hello, i am currently using Opencart Version 3.0.2.0, and i am done using localhost, time to migrate, but most instructions i see on the internet are for 2.x because the storage folder is not mentioned , that is, outside public html folder, how can i go about it?, Currently, i have moved all files from my PC to server (Hostinger), then tried editing the config.php and admin/config.php according to what i found on the internet, and i have copied and pasted them below, but each time i refresh my website, it shows .....
This page isn’t working
escapist-hat.hostingerapp.com is currently unable to handle this request.
HTTP ERROR 500
Here are the config codes:

CONFIG.PHP

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://escapist-hat.hostingerapp.com/');

// HTTPS
define('HTTPS_SERVER', 'http://escapist-hat.hostingerapp.com/');

// DIR
define('DIR_APPLICATION', '/domains/escapist-hat.hostingerapp.com/public_html/catalog/');
define('DIR_SYSTEM', '/domains/escapist-hat.hostingerapp.com/public_html/system/');
define('DIR_IMAGE', '/domains/escapist-hat.hostingerapp.com/public_html/image/');
define('DIR_STORAGE', '/domains/escapist-hat.hostingerapp.com/storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'u788256072_eher');
define('DB_PASSWORD', 'Olahmyde1.');
define('DB_DATABASE', 'u788256072_eher');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

Code: Select all

[b]ADMIN/CONFIG.PHP[/b]
<?php
// HTTP
define('HTTP_SERVER', 'http://escapist-hat.hostingerapp.com/');
define('HTTP_CATALOG', 'http://escapist-hat.hostingerapp.com/');

// HTTPS
define('HTTPS_SERVER', 'https://escapist-hat.hostingerapp.com/');
define('HTTPS_CATALOG', 'https://escapist-hat.hostingerapp.com/');

// DIR
define('DIR_APPLICATION', '/domains/escapist-hat.hostingerapp.com/public_html/admin/');
define('DIR_SYSTEM', '/domains/escapist-hat.hostingerapp.com/public_html/system/');
define('DIR_IMAGE', '/domains/escapist-hat.hostingerapp.com/public_html/image/');
define('DIR_STORAGE', '/domains/escapist-hat.hostingerapp.com/storage/');
define('DIR_CATALOG', 'catalog/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/template/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

// DB
define('DB_DRIVER', 'mysqli');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'u788256072_eher');
define('DB_PASSWORD', 'Olahmyde1.');
define('DB_DATABASE', 'u788256072_eher');
define('DB_PORT', '3306');
define('DB_PREFIX', 'oc_');

// OpenCart API
define('OPENCART_SERVER', 'https://www.opencart.com/');

New member

Posts

Joined
Tue Apr 10, 2018 1:24 am

Post by olahmyde » Sun Sep 23, 2018 11:09 am

SOLVED!... The issue is with knowing the proper full path of your website... this website might help


http://websitemigrationguides.com/guide.php?migrate=5

New member

Posts

Joined
Tue Apr 10, 2018 1:24 am
Who is online

Users browsing this forum: No registered users and 226 guests