Your Ad Here

Home » OsCommerce »

1

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php

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: anil2u.info )

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 :

1
 $_SERVER['DOCUMENT_ROOT']

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 .


You may like these posts

    What is osCommerce and how to install osCommerce in localhost?Oscommerce issues Out of memory (Needed 1048548 bytes)  in oscommerceEvents calendar implementation in oscommerce using php code

 

1 Comment

Leave a Reply