Open Source Services
taming open source systems...
Home
Friday, 05 December 2008
Main Menu
Home
Forum
Products
Download
Sitemap
Contact Us
Login Form





Lost Password?
No account yet? Register
Overview Print E-mail
 

By Administrator, on 20-07-2008 18:18

Views : 128    

Favoured : 23

Published in : Technical Comparison of Popular Open Source Shopping Carts, Configuration


This page compares the PHP constants which define global configuration settings within the configure.php files in each cart. The configuration files for both the storefront and admin sections are populated during the installation process but they can - and in some cases should - be edited at any time thereafter. These two configure.php files should be write-protected at all times apart from when you are editing them. As mentioned earlier, the front and back end components are meant to be two separate functional entities, so they should not share any files at all, including the configuration files. If you are programming for the admin side, you cannot access the constant PHP values that define settings in the store side and vice versa.

As we can see from the illustration, the PHP constants which appear in the configure.php files are more or less the same across all three platforms. Below is a breakdown of each setting and in which cart it appears:

Common to All 3 Carts - Storefront configure.php

  • HTTP_SERVER - This should be set to 'http://' plus the domain name for your site. If hosted on your local machine, just add 'localhost', if hosted remotely add 'www.yourdomain (with the .com,.net or other suffix). No trailing slash should be added. This setting is invoked any time the system needs to find a resource in your website using the absolute path to it.
  • HTTPS_SERVER - This should only be set if you are using SSL for some or all the pages on your site. It should begin with 'https://' followed by the same string as for the HTTP_SERVER value provided that the SSL certificate has been set up to cover the entire site.
  • ENABLE_SSL - Set to either true or false depending on whether or not you have set up SSL for any part of your site.
  • DIR_WS_IMAGES - The relative path to the images folder (with trailing slash).
  • DIR_WS_INCLUDES - The relative path to the includes folder (with trailing slash).
  • DIR_WS_FUNCTIONS - The relative path to the functions folder (with trailing slash).
  • DIR_WS_CLASSES - The relative path to the classes folder (with trailing slash).
  • DIR_WS_MODULES - The relative path to the modules folder (with trailing slash).
  • DIR_WS_LANGUAGES - The relative path to the languages directory (with trailing slash).
  • DIR_WS_DOWNLOAD_PUBLIC - The path to your downloadable product files. Since these are valuable assets, you should consider placing them in a folder OUTSIDE of your server's web directory and use an absolute path here to that folder. This approach is more secure than leaving the files inside your web directory.
  • DIR_FS_DOWNLOAD -
  • DIR_FS_DOWNLOAD_PUBLIC - This value should mainly be used in development environments only unless you know the name of your absolute root folder on the host's server.
  • DB_SERVER - This is the name of the machine where the database is stored. For a local development environment simply entering 'localhost' is enough. For a hosted website, you need to add the name of your database server, which you can get from your host.
  • DB_SERVER_USERNAME - The username to access the database.
  • DB_SERVER_PASSWORD - The password to access the database.
  • DB_DATABASE - The name of the database which contains the shopping cart's tables.
  • USE_PCONNECT - Enter true or false depending on whether or not you wish to use persistent connections. Should be set to true for performance reasons.
  • STORE_SESSIONS - Choose whether to store session data in the database (usually set to 'mysql') or in a file on the server (set to 'files').



Common to osCommerce and CRELoaded Only

  • HTTP_COOKIE_DOMAIN -
  • HTTPS_COOKIE_DOMAIN -
  • HTTP_COOKIE_PATH -
  • HTTPS_COOKIE_PATH -
  • DIR_WS_HTTP_CATALOG -
  • DIR_WS_HTTPS_CATALOG -
  • DIR_WS_ICONS -
  • DIR_WS_BOXES -
  • DIR_FS_CATALOG -



Common to Zen Cart and CRELoaded Only

  • DIR_WS_TEMPLATES -



Exclusive to Zen Cart

  • DIR_WS_CATALOG -
  • DIR_WS_HTTPS_CATALOG -
  • DIR_WS_PHPBB -
  • DIR_WS_UPLOADS -
  • DIR_FS_UPLOADS -
  • DIR_FS_EMAIL_TEMPLATES -
  • DB_TYPE -
  • DB_PREFIX -
  • SQL_CACHE_METHOD -
  • DIR_FS_SQL_CACHE -



Exclusive to CRELoaded

  • DIR_WS_CONTENT -
  • DIR_WS_JAVASCRIPT -

  • Notes

- The osCommerce settings are a complete subset of the CRELoaded settings.

- Database connection and session storage are handled by the same settings across all the carts.

- Many of the settings include the characters 'WS' or 'FS'. These values can either be relative or absolute. The difference between them is that 'WS' stand for 'Webserver', meaning a path present on the webserver, so that absolute paths using 'WS' will begin the 'http://....' part, whereas 'FS' stands for 'File System' which means the absolute paths using 'FS' will begin with 'C:/...' or any other letter to denote a hard drive. If using relative pathnames, the 'WS' and 'FS' settings can be used interchangeably.


Last update : 20-07-2008 18:46

   
Quote this article in website
Favoured
Send to friend
Related articles

Users' Comments  RSS feed comment
 

Average user rating

   (0 vote)

 


Add your comment
Name
E-mail
Title  
 
Comment
 
Available characters: 600
   Notify me of follow-up comments
  This image contains a scrambled text, it is using a combination of colors, font size, background, angle in order to disallow computer to automate reading. You will have to reproduce it to post on my homepage
Enter the word below (refresh the image if it is difficult to see):

   
   

No comment posted



mXcomment 1.0.8 © 2007-2008 - visualclinic.fr
License Creative Commons - Some rights reserved
 
© 2008 Open Source Services
Designed by Open Source Services. Powered by open source software.
Seasonale
Generated in 0.53334 Seconds