Hi friends,In my previous post i have explained what is oscommerce and how to install it in localhost. Today I want to discuss how to configure the oscommerce if we are files at subfolder and run at localhost or site . You need to do some modification in localhost while migrate it to server. I have explained in detail with code.
http://localhost/root-site/shop/
We may get errors at this point, suppose we are run oscommerce shop in a sub folder then we have to think that how to configure this file to run the site success . Follow below points to configure file to run the shop at your localhost or site.
define('HTTP_SERVER', 'http:// [ SERVER ] ');
define('HTTPS_SERVER', 'http:// [ SERVER] ');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', 'http://[ SERVER ] ');
define('HTTPS_COOKIE_DOMAIN', 'http://[SERVER]');
define('HTTP_COOKIE_PATH', '/[YOUR PATH]');
define('HTTPS_COOKIE_PATH', '[ YOUR PATH]');
define('DIR_WS_HTTP_CATALOG', '/[ YOUR PATH ]');
define('DIR_WS_HTTPS_CATALOG', '/[ YOUR PATH]');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/[ CATALOG ]');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DB_SERVER', [DATABASE SERVER]);
define('DB_SERVER_USERNAME', '[DATABASE USER]');
define('DB_SERVER_PASSWORD', '[PASSWORD]');
define('DB_DATABASE', '[DATABASE NAME]');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
?>
®Note :
SERVER :
localhost / your site name ( eg: anillabs.com )
YOUR PATH :
where the oscommerce files are stored those path
(eg: if files are at shop folder then give like “/shop”)
CATALOG :
Once run this file at your oscommerce folder :
If it is a windows + using apache server it will give :
C:/appserv/www/
After this we have to add your oscommerce folder. Suppose your files at “shop” folder. Then
CATALOG = c:/apserv/www/oscommerce/shop/
Once complete these steps , just change the file permission to avoid the warning message at home page of oscommerce shop site.
Hope that it will be useful .
Pingback : Oscommerce issues - Anil Labs