I was working on a local and now wanted to move the store to the server where SSL is installed. I located to the admin/config and the root config. Can anyone show me the what I have to do. I can change the localhost with http://www.domain.com but am not sure what to do for the rest (except the database information)
The root config is as follows:
<?php
// DIR
define('DIR_APPLICATION', 'C:\wamp\www\store\/catalog/');
define('DIR_SYSTEM', 'C:\wamp\www\store\/system/');
define('DIR_DATABASE', 'C:\wamp\www\store\/system/database/');
define('DIR_LANGUAGE', 'C:\wamp\www\store\/catalog/language/');
define('DIR_TEMPLATE', 'C:\wamp\www\store\/catalog/view/theme/');
define('DIR_CONFIG', 'C:\wamp\www\store\/system/config/');
define('DIR_IMAGE', 'C:\wamp\www\store\/image/');
define('DIR_CACHE', 'C:\wamp\www\store\/system/cache/');
define('DIR_DOWNLOAD', 'C:\wamp\www\store\/download/');
define('DIR_LOGS', 'C:\wamp\www\store\/system/logs/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_DATABASE', 'mystore');
define('DB_PREFIX', '');
?>
The Admin Config is as follows:
<?php
// HTTP
define('HTTP_SERVER', 'http://localhost/store/admin/');
define('HTTP_CATALOG', 'http://localhost/store/');
define('HTTP_IMAGE', 'http://localhost/store/image/');
// HTTPS
define('HTTPS_SERVER', 'http://localhost/store/admin/');
define('HTTPS_IMAGE', 'http://localhost/store/image/');
// DIR
define('DIR_APPLICATION', 'C:\wamp\www\store\/admin/');
define('DIR_SYSTEM', 'C:\wamp\www\store\/system/');
define('DIR_DATABASE', 'C:\wamp\www\store\/system/database/');
define('DIR_LANGUAGE', 'C:\wamp\www\store\/admin/language/');
define('DIR_TEMPLATE', 'C:\wamp\www\store\/admin/view/template/');
define('DIR_CONFIG', 'C:\wamp\www\store\/system/config/');
define('DIR_IMAGE', 'C:\wamp\www\store\/image/');
define('DIR_CACHE', 'C:\wamp\www\store\/system/cache/');
define('DIR_DOWNLOAD', 'C:\wamp\www\store\/download/');
define('DIR_LOGS', 'C:\wamp\www\store\/system/logs/');
define('DIR_CATALOG', 'C:\wamp\www\store\/catalog/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define('DB_DATABASE', 'mystore');
define('DB_PREFIX', '');
?>
And in the Admin, what path should I give for the store with SSL installed in the server:
https://www.domain.com/store or http://www.domain.com/store ?
It may be simplest to follow these instructions:
Moving to another hoster/domain - this will ensure your config files automatically show the correct paths for your live server.
It's a good idea to take 2 site backups, and keep one separate from the folders/files you will be transferring.
In the admin panel, the store URL must be in the format http://www.yourstore.com/ - that is, with http: protocol, and trailing slash at the end. Do not use https: here or the store will show errors.
All you need do to enable SSL is select Use SSL:yes in the admin panel (system >settings>server).
-hope that helps!
Moving to another hoster/domain - this will ensure your config files automatically show the correct paths for your live server.
It's a good idea to take 2 site backups, and keep one separate from the folders/files you will be transferring.
In the admin panel, the store URL must be in the format http://www.yourstore.com/ - that is, with http: protocol, and trailing slash at the end. Do not use https: here or the store will show errors.
All you need do to enable SSL is select Use SSL:yes in the admin panel (system >settings>server).
-hope that helps!
Where will I upload ssl files on wamp server ?Moggin wrote: ↑Thu Apr 14, 2011 9:05 amIt may be simplest to follow these instructions:
Moving to another hoster/domain - this will ensure your config files automatically show the correct paths for your live server.
It's a good idea to take 2 site backups, and keep one separate from the folders/files you will be transferring.
In the admin panel, the store URL must be in the format http://www.yourstore.com/ - that is, with http: protocol, and trailing slash at the end. Do not use https: here or the store will show errors.
All you need do to enable SSL is select Use SSL:yes in the admin panel (system >settings>server).
-hope that helps!
Last edited by ofcerci@gmail.com on Thu Jan 19, 2023 8:57 pm, edited 1 time in total.
1. wamp = local server
2. which SSL-files?
Do you really want to use a "wamp" server for your online shop?
Or what is your purpose?
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Enable SSL from admin side, and changes in both config file from http:// to https://
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Who is online
Users browsing this forum: No registered users and 5 guests