Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help configuring the configure.php files


poohbeer

Recommended Posts

Can someone in laymans term explain all these parameters (with example) or point me to a faq where these are explained?

 

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

 

FS= /home/users/homesite/be/ and WS= www.mysite.be/catalog/ for example??

 

 

define('HTTP_SERVER', 'http://www.myhost.be');

i understand

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

i don't think I have https, do i need to add something?

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

don't have it so false is good

define('HTTP_COOKIE_DOMAIN', '');

now what the hell is this?

define('HTTPS_COOKIE_DOMAIN', '');

again, don't think I have https so leave it empty?

define('HTTP_COOKIE_PATH', '');

no idea

define('HTTPS_COOKIE_PATH', '');

no idea

define('DIR_WS_HTTP_CATALOG', '');

just the catalog/ dir here?

define('DIR_WS_HTTPS_CATALOG', '');

see other https questions

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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

all these are set standard correct I hope? haven't adjusted anything

 

// define our database connection

define('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers

understood

define('DB_SERVER_USERNAME', '');

understood

define('DB_SERVER_PASSWORD', '');

understood

define('DB_DATABASE', '');

understood

define('USE_PCONNECT', 'false'); // use persistent connections?

false since I'm on the same server as other users

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

no idea what this means but empty is good I hope?

 

 

 

the admin configure.php is more of the same I think so no help needed there after somebody has answered the above.

Link to comment
Share on other sites

Here's a copy of one that works. Use it as a guideline. SSL is Secure Socket Layer for handling sensitive info like credit card numbers, etc. You want and need this. Ask your Provider what the address is. FS defines are absolute (complete) pathnames, WS defines are usually one folder name which is appended to other addresses. Examine the code below and you'll get the idea. And set Sessions to MYSQL, unless you use another database. It stores a log in your database.

 

Good luck, Charles

 

define('HTTP_SERVER', 'http://www.naturespirit.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://bpweb.bpweb.com/naturespirit.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'http://www.naturespirit.com');
 define('HTTPS_COOKIE_DOMAIN', 'https://bpweb.bpweb.com/naturespirit.com');
 define('HTTP_COOKIE_PATH', '/OSC_Catalog/');
 define('HTTPS_COOKIE_PATH', '/OSC_Catalog/');
 define('DIR_WS_HTTP_CATALOG', '/OSC_Catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/OSC_Catalog/');
 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', 'http://localhost/OSC_Catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
db lines omitted

 define('USE_PCONNECT', 'true'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Link to comment
Share on other sites

this is the error i get i did change the configure.php to chmod 644 and still the same errrore. i cannot do anything to fix it.

Warning: I am able to write to the configuration file: /www/x/xdefine/htdocs/store/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

 

can anyone please tell me what i should do to fix this.

 

thank you

Link to comment
Share on other sites

You may find that in fact you need to set the files to chmod 444 this is what I had to do as 644 still gave the warning.

 

444 is no write state so thus no warning.

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...