Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

configure.php not set correctly


Guest

Recommended Posts

Hi,

 

I'm still trying to setup my SSL correctly (seems to be dragging on for ages!!!!) but i'm not sure if i've set the configure.php's properly. Can anyone point out what i have done wrong below as i'm currently getting an popup error message in my browser saying

The connection to minimotosandmore.com has terminated unexpectedly.  Some data may have been transferred.

 

As far as i know my certificate was allocated to minimotosandmore.com and not www.minimotosandmore.com.

 

This is my includes/configure.php

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.minimotosandmore.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://minimotosandmore.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.minimotosandmore.com');
 define('HTTPS_COOKIE_DOMAIN', 'minimotosandmore.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/ejam/public_html/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '*****');
 define('DB_SERVER_PASSWORD', '*****');
 define('DB_DATABASE', '*****');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

and this is my admin/includes/configure.php

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'https://www.minimotosandmore.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'https://www.minimotosandmore.com');
 define('HTTPS_CATALOG_SERVER', 'https://minimotosandmore.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/ejam/public_html/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/ejam/public_html/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/ejam/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/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '*****');
 define('DB_SERVER_PASSWORD', '*****');
 define('DB_DATABASE', '*****');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

Thanks to anyone who can help me.

Link to comment
Share on other sites

When I click on an https link it just gets a 404 - file not found error. If you do have an ssl cert installed (full ssl not shared) then it looks like you have one of those two-folder systems where you have to duplicate everything in the httpdocs folder in an httpsdocs folder.

 

Alternatively, you may only have a shared ssl - in which case the pathways in your configure.php files are wrong.

 

Vger

Link to comment
Share on other sites

When I click on an https link it just gets a 404 - file not found error.  If you do have an ssl cert installed (full ssl not shared) then it looks like you have one of those two-folder systems where you have to duplicate everything in the httpdocs folder in an httpsdocs folder.

 

Alternatively, you may only have a shared ssl - in which case the pathways in your configure.php files are wrong.

 

Vger

My SSL certificate is the pro from instantssl which as far as i can tell is a full certificate and not shared. I thought i'd just have a folder to add the secure files to but all of my files are in a public_html folder and I don't think I have any other folders such as httpdocs or httpsdocs.

 

Any ideas of what I can try?

Thanks again for your help

Link to comment
Share on other sites

Your configure.php files (above) appear to be correct. Even if there are minor problems there's nothing to stop your ssl cert from operating. Even if your hosting company had not rebooted the httpd files after installing the cert it would still work, but with error messages because the intermediate cert is not in place.

 

The only conclusion I can come to is that the cert has not been installed at all.

 

You need to check with your hosting company and get them to make sure that the cert has been installed/installed properly.

 

Vger

Link to comment
Share on other sites

Hi,

 

Thanks for everyones help, i think i've at last found what i'm doing wrong. I've contacted my host and they've explained about a full certificate needing to be on an individual IP Address, whereas mine at the moment is on a shared one. They've given me a pathway of https://hagrid.securesitex2.com/~<username> (username i presume being my domain of minimotosandmore.com rather that a login username for example?), but i would just like to check which bits i need to change to this path in my confugure.php's?

 

Also, can anyone explain to me the benefit of a full certificate over a shared one just out of interest?

 

Thanks to everyone who has helped, I appreciate it. Sorry its dragging on, i'm totally rubbish at this :blink: .

Link to comment
Share on other sites

Ok, so i've now decided to rent an individual IP Address from my host, but i'm still lost! I've tried to visit my site at the usual address of http://www.minimotosandmore.com but it loads cpanel with the message 'there is no website configured at this address'. I can load my site at http://minimotosandmore.com/ but for every page i try to load i get a '404 Not Found' message. My config files are as i previously posted, where am I going wrong?

 

Thanks again

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...