Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change Which Lines In Config Files To Move To Root


Guest

Recommended Posts

Posted

Okay Gang I'm going crazy here!

 

Up until today I've had osc in a subdirectory called OSC off my domain. This way I could work on everything until the store was complete then move it over to the root once it was done.

 

So far I've moved all my files out of my folder named "OSC" which is the same as catalog folder.

 

Now from reading over the boards I know I need to edit my two configure.php files both the one in includes and the admin/includes folders.

 

The problem exactly which lines in the configure files need to be changed?

 

my includes/configure.php

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

 

 

my admin/includes/configure.php

define('HTTP_SERVER', 'https://www.site.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.site.com');
 define('HTTPS_CATALOG_SERVER', 'https://www.site.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/bimh/public_html/osc/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/osc/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/bimh/public_html/osc/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/osc/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/bimh/public_html/osc/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

Do I change every instance of "/osc/" to " / " and every instance of "folder-name/" to "/folder-name/" ??

I do apologize for the stupid and long question but I'm so flustered I can't get it correct that I'm going crazy.

 

TIA For Any Help -- Mindy

Posted
my includes/configure.php

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

 

 

my admin/includes/configure.php

define('HTTP_SERVER', 'https://www.site.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTP_CATALOG_SERVER', 'http://www.site.com');
define('HTTPS_CATALOG_SERVER', 'https://www.site.com');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/home/bimh/public_html/'); // where the pages are located on the server
define('DIR_WS_ADMIN', '/admin/'); // absolute path required
define('DIR_FS_ADMIN', '/home/bimh/public_html/admin/'); // absolute pate required
define('DIR_WS_CATALOG', '/'); // absolute path required
define('DIR_FS_CATALOG', '/home/bimh/public_html/'); // absolute path required
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

TIA For Any Help -- Mindy

Good luck!
Posted
Good luck!

 

Thanks I need all the luck on this I can get!! :blink:

 

I've actually got part of this solved.. Made all the changes and now my osc store is displayed in the root. All images load etc it al lworks with one exception. So I still have a static "we're down" note up as an index.html to still keep them out of the osc store.

 

The only problem I have left is that when I visit pages like Login or Checkout or Create Account they don't automatically go to https: instead they remain http: I've directly typed in my domain name with the https: and my store then displays the secure pages. But before I moved it from the subdirectory the change to secure https pages were done when ever you clicked on one of the pages above listed.

 

I must have touched something in the config files to muck it up.

 

Any ideas on what to check in the configure files for my mistake?

 

-- Mindy

Posted

Another bit of info..

 

If I vist https://mysite.com in my browser I get the padlock in the bottom of the browser window fine and dandy. But if I click any link that should be secure like Login - Check Out - etc they are all http non-secure links.

 

I did a file compare with my original two configure files before I made the changes for the move from subdomain to root directory. The only things that are different are the removal of the subdomain. I did not change any of the defines for anything else didn't touch the HTTP or HTTPS defines except with that of removing the subdirectory folder name from the paths.

 

So the settings being used now are the same ones that were working correctly with SSL this morning before I made the move to root.

 

What on earth could I have set wrong?

 

Includes/Configure

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

 

Admin Includes/Configure

define('HTTP_SERVER', 'https://www.site.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.site.com');
 define('HTTPS_CATALOG_SERVER', 'https://www.site.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/bimh/public_html/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/bimh/public_html/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/bimh/public_html/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

Posted

Those settings are correct for a site with a full ssl certificate (not a shared ssl cert).

 

Vger

Posted
Those settings are correct for a site with a full ssl certificate (not a shared ssl cert).

 

Vger

 

Vger thanks so much for looking over it!!!

 

It's a private full cert. It was working perfectly this morning b4 I moved the store to the root but now I can't get it to work to save my life. Was actually just typing an email to you to beg for professional assistance.. :blush:

 

-- Mindy

Posted

Issue solved!!!!

 

Thanks so much to the all the help and time from Vger and AlanR. You guys RAWK!

 

-- Mindy

Archived

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

×
×
  • Create New...