Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Why is my site working and not working?


Guest

Recommended Posts

Hi

 

I'm still unsuccessfully configuring my SSL settings in config.php's. I've been playing around and at the moment I can visit my site at http://minimotosandmore.com but can't at http://www.minimotosandmore.com. Once i'm there I can view my non-secure pages which then display an address like http://www., but i can't click on 'Home' (http://www.minimotosandmore.com) as i get a message saying 'there is no website configured at this address'. Nor can i view any secure pages as i get another error message.

 

Can anyone tell me what is going on? My host tells me my certificate is ok their end.

Thanks in advance

Link to comment
Share on other sites

Hi

 

I'm still unsuccessfully configuring my SSL settings in config.php's.? I've been playing around and at the moment I can visit my site at http://minimotosandmore.com but can't at http://www.minimotosandmore.com.? Once i'm there I can view my non-secure pages which then display an address like http://www., but i can't click on 'Home' (http://www.minimotosandmore.com) as i get a message saying 'there is no website configured at this address'.? Nor can i view any secure pages as i get another error message.

 

Can anyone tell me what is going on?? My host tells me my certificate is ok their end.

Thanks in advance

 

 

I can visit both url's - but create an account which would be under secure https - does not work with either.

 

Suggests to me a problem with one or more of

 

SSL installation,

configure.phps,

server directory structure and file locations

 

Charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

I can visit both url's - but create an account which would be under secure https - does not work with either.

 

Suggests to me a problem with one or more of

 

SSL installation,

configure.phps,

server directory structure and file locations

 

Charles

Thanks, these are my config files at the moment, have you any suggestions of what needs to be changed? My server directory structure is just public_html with all of my files in that, other than the SSL certificate which is in a folder called SSL, i don't have any other folders to place secure files. However, i do have another folder called 'www' which seems like it has a copy of all my files in.

 

includes/configure:

<?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'
?>

 

admin/includes/configure:

<?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://minimotosandmore.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'https://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'
?>

 

Other than the secure pages, my site seems to work in Internet explorer with both url's but not Firefox strangely.

 

I'd appreciate any further help

 

Thanks again

Link to comment
Share on other sites

On first look your catalog configure looks OK - your admin one is all over the shop so to speak (but this is a little besides the point as I don't think your problem is in that configure file )

 

For instance _ you have 'HTTP_SERVER', 'https://minimotosandmore (i.e http set up with a secure path and the same for 'HTTP_CATALOG_SERVER', 'https://minimotosandmore -

 

Here is my test shop's admin/includes configure which is installed two levels below root i.e in public_html/shoptest/catalog (so you need to adjust for this as your shop is at root level.)

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 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.simplyeasier.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://simplyeasier.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.simplyeasier.com');

define('HTTPS_COOKIE_DOMAIN', 'simplyeasier.com');

define('HTTP_COOKIE_PATH', '/shoptest/catalog/');

define('HTTPS_COOKIE_PATH', '/shoptest/catalog/');

define('DIR_WS_HTTP_CATALOG', '/shoptest/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/shoptest/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/****/public_html/shoptest/catalog/');

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

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

 

As your directory structure sound pretty standard who installed your SSL cert and what instructions did they give you for accessing it ? Have you got an unique IP address ?

 

Charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

your https server needs to match along the lines of your ssl cert, ie if it is issued to www.domain.com then in https server setting it needs to be https://www.domain.com

also the cookie setting should have two periods in it, if as above, would be www.domain.com if no www then it would be .domain.com

Link to comment
Share on other sites

Here is my test shop's admin/includes configure which is installed two levels below root i.e in public_html/shoptest/catalog (so you need to adjust for this as your shop is at root level.)

 

Thanks for your reply, isn't this your includes/configure rather than admin/includes/configure? I will base my config around yours as I think my certificate was also allocated to minimotosandmore.com rather than www.minimotosandmore.com like yours seems to be.

 

As your directory structure sound pretty standard who installed your SSL cert and what instructions did they give you for accessing it ? Have you got an unique IP address ?

 

Charles

 

I installed my cert with the instructions given by instantssl.com which seemed fairly simple, it asked me to create a key and CSR, then purchase a certificate and install by firstly downloading the certificates provided once i had signed up, then uploading them to my server, which I have done. After that the only other instructions I was given was to display the site seal on my site, so i'm guessing that this was all i had to do to install the certificate.

 

I've rented an individual IP address from my host which I did today, so i reinstalled my cert to make sure it was installed properly, so as far as i know the problem is probably with the way by config files are setup.

 

Thanks again.

Link to comment
Share on other sites

I installed my cert with the instructions given by instantssl.com which seemed fairly simple, it asked me to create a key and CSR, then purchase a certificate and install by firstly downloading the certificates provided once i had signed up, then uploading them to my server, which I have done. After that the only other instructions I was given was to display the site seal on my site, so i'm guessing that this was all i had to do to install the certificate.

 

I've rented an individual IP address from my host which I did today, so i reinstalled my cert to make sure it was installed properly, so as far as i know the problem is probably with the way by config files are setup.

 

Thanks again.

 

Oops caught out - you are right it is my catalog configure above

 

the admin one is below

// Define the webserver and path parameters

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

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

define('HTTP_SERVER', 'http://www.simplyeasier.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.simplyeasier.com');

define('HTTPS_CATALOG_SERVER', 'https://simplyeasier.com');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/****/public_html'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/shoptest/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/shoptest/catalog/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/shoptest/catalog/'); // absolute path required

define('DIR_FS_CATALOG', '/home/****/public_html/shoptest/catalog/'); // 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/');

 

 

The CSR and cert purchasing process seems OK - did they tell you where (directory) and how (permissions , use of the unique IP address, chaining if required) to upload the cert to ?

 

Installing SSL can be difficult if you do not do it everyday - even hosts have problems.

 

Your catalog configure looked ok and even if you were calling the cert by a wrong name - if it is installed correctly yo u should be seeing alerts and warnings rather than pages that cannot be accessed.

 

So I would suggest - play around with your configures but look at the install closely as well.

 

Charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

The CSR and cert purchasing process seems OK - did they tell you where (directory) and how (permissions , use of the unique IP address, chaining if required) to upload the cert to ?

 

Installing SSL can be difficult if you do not do it everyday - even hosts have problems.

 

Your catalog configure looked ok and even if you were calling the cert by a wrong name - if it is installed correctly yo u should be seeing alerts and warnings rather than pages that cannot be accessed.

 

So I would suggest - play around with your configures but look at the install closely as well.

 

Charles

Thanks Charles, you've been a great help. They didn't tell me where to upload my cert to and i don't think i was given much of a choice as in the 'SSL Manager' in my cPanel my instructions were to "upload a new certificate", but i wasn't given a choice of route of where this would be installed, instead once I had uploaded it it just says 'Certificates on Server' and underneath displays the 3 certs: Comodo, GTE and Minimotosandmore.com. Other than this i haven't seen any other instructions in terms of permissions and use of a unique IP address, other than those that as far as i can tell only display the site seal and trust logo. I will play around with the configures based on yours and see how far i get.

 

Thanks again

Link to comment
Share on other sites

Thanks Charles, you've been a great help.  They didn't tell me where to upload my cert to and i don't think i was given much of a choice as in the 'SSL Manager' in my cPanel my instructions were to "upload a new certificate", but i wasn't given a choice of route of where this would be installed, instead once I had uploaded it it just says 'Certificates on Server' and underneath displays the 3 certs: Comodo, GTE and Minimotosandmore.com.  Other than this i haven't seen any other instructions in terms of permissions and use of a unique IP address, other than those that as far as i can tell only display the site seal and trust logo.  I will play around with the configures based on yours and see how far i get.

 

Thanks again

 

 

Justin

 

Get your host to earn some of the money you pay them - installing certs should be part of the service they provide and if they don't just inform them other hosts do and you are now looking for another one - that should give them something to think about.

 

Also have a word with your cert issuer's technical people who might be more forthcoming in telling you how and where to install the cert

 

Charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

if you are using cpanel and it has an ssl manager, then you just need to paste in your cert from where you purchased your ssl cert from, as well as the private key you generated to get your cert. also if you have a 'bundle' cert from where you got your cert, then paste that in the bottom of the three windows.

it only gets placed in one spot, which is what is configured in your system automatically.

if you have shell access and know how to install from the command line, you can do so.

Link to comment
Share on other sites

if you are using cpanel and it has an ssl manager, then you just need to paste in your cert from where you purchased your ssl cert from, as well as the private key you generated to get your cert.  also if you have a 'bundle' cert from where you got your cert, then paste that in the bottom of the three windows.

it only gets placed in one spot, which is what is configured in your system automatically.

if you have shell access and know how to install from the command line, you can do so.

Hi John,

 

I've seen this said before about the 3 windows to paste the crt's into, but i don't seem to have that! So i just uploaded the 3 certs seperately. This is what i see in cPanel:

SSL%20manager.jpg

 

I have spoken to my cert issuer and they gave me 4 explanations of what else could be wrong:

1 : There is a firewall / router on your network not allowing traffic on the SSL port.

2: The private key for your certificate does not match or is not associated correctly with the certificate

3: The server itself is not configured to run SSL on the desired port, ie the port to listen on has not been entered

4: There is a DNS error on the network or an incorrect DNS mapping.

 

This is getting more complicated as i go along!!

Link to comment
Share on other sites

your host should be able to install it properly for you. i do it for all my people.

they probably need to delete all and start over again, dont know if you have access to uninstall the certs then start over.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...