Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

After SSL setup I get a "File can't be found" error at checkout


Guest

Recommended Posts

Been trying to figure this out but can't get it to work,

Have tried the simple setup 123 etc to no avail. I'm pretty sure it is not a difficult fix I must have something set wrong but I can't seem to get it right.

Thanks in advance for your help.

Here is my info:

osCommerce 2.2-MS2, Apache server, MySQL 3.23.58, PHP Version: 4.3.10 (Zend: 1.3.0), Plesk 6.0, all files in root (no catalog), SSL issued to www.treasuredog.com with the www.

The site is working fine until I try to setup my SSL feature. I bought and installed an SSL certificate from GoDaddy and when I try to set my site up here is what happens:

When I upload these configure files all looks ok till I hit the checkout button then the "lock" locks but I get a "file can't be found error".

I have looked all over the osCommerce site and have tried several proposed fixes but nothing seems to work.

What I know about PHP is just enough to get me in trouble and sometimes I'm lucky enough to stumble on the right code but not this time.

If you could help me get the SSL working I would be very grateful.

Grant

 

/includes/configure.php

 

// Define the webserver and path parameters

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

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

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

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

define('HTTPS_COOKIE_DOMAIN', 'www.treasuredog.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', '/usr/local/psa/home/vhosts/treasuredog.com/httpdocs/');

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', 'xxxxxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxxxx');

define('DB_DATABASE', 'xxxxxxxx');

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

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

 

 

 

/admin/includes/configure.php

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://www.treasuredog.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

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

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

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

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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');

define('DB_SERVER_USERNAME', 'xxxxxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxxxx');

define('DB_DATABASE', 'xxxxxxxx');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', '');

Link to comment
Share on other sites

I can't believe nobody out there can help me out. Maybe everyone thinks it's too easy a fix and I'm a dummy for not figuring it out myself. (ok maybe I am, but I still need help).

I still can't get the ssl to work properly.

Please someone look at the code I posted and tell me what is wrong.

I have tried several things with no luck including the 2 everyone says should have ssl up and running smoothly:

 

http://www.oscommerce.com/forums/index.php?showtopic=233458

 

http://www.oscommerce.com/forums/index.php?showtopic=151162

 

Any help would be welcome!!! I'll try anything!!!

Grant :blink:

Link to comment
Share on other sites

define('DIR_FS_CATALOG', '/usr/local/psa/home/vhosts/treasuredog.com/httpdocs/');

 

Do you have an https directory. If so upload your files to that directory also. Shot in the dark here. :-"

Link to comment
Share on other sites

Your web hosting control panel is Plesk, and Plesk does use both an httpdocs and an httpsdocs folder when it is not correctly set up.

 

You need to get your hosting company to Sym Link (Symbolically Link) the httpsdocs folder to the httpdocs folder and this will save you all of the hassle involved with keeping two sets of files going.

 

Vger

Link to comment
Share on other sites

Your web hosting control panel is Plesk, and Plesk does use both an httpdocs and an httpsdocs folder when it is not correctly set up.

 

You need to get your hosting company to Sym Link (Symbolically Link) the httpsdocs folder to the httpdocs folder and this will save you all of the hassle involved with keeping two sets of files going.

 

Vger

 

Thank you very much,

I will contact them right away.

Grant

Link to comment
Share on other sites

define('DIR_FS_CATALOG', '/usr/local/psa/home/vhosts/treasuredog.com/httpdocs/');

 

Do you have an https directory. If so upload your files to that directory also. Shot in the dark here. :-"

 

Thanks,

I may try that if my hosting company can't or won't link my http and https as Vger suggests.

Grant

Link to comment
Share on other sites

Your web hosting control panel is Plesk, and Plesk does use both an httpdocs and an httpsdocs folder when it is not correctly set up.

 

You need to get your hosting company to Sym Link (Symbolically Link) the httpsdocs folder to the httpdocs folder and this will save you all of the hassle involved with keeping two sets of files going.

 

Vger

Just a quick update,

My hosting company says that the version of Plesk I currently use will not allow them to link the two folders. The good news is they are going to migrate my account to a newer server running the latest version of Plesk. Hope all goes smoothly.

Thanks again,

Grant

PS with the new Plesk osCommerce is offered as a featured web application!! :thumbsup:

Link to comment
Share on other sites

another thing i noticed, which isnt i think not eminent for your problem but prolly it might help:

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'xxxxxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxxxx');

define('DB_DATABASE', 'xxxxxxxx');

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

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

 

here is suggested by the introduction of osC to set persistent connections to "true" and to set the path for the mysql database - usually you can look that up in your domain account information

i would rather check that too so that you could exclude that this isnt the problems source

Link to comment
Share on other sites

another thing i noticed, which isnt i think not eminent for your problem but prolly it might help:

here is suggested by the introduction of osC to set persistent connections to "true" and to set the path for the mysql database - usually you can look that up in your domain account information

i would rather check that too so that you could exclude that this isnt the problems source

Thanks for your input,

Unfortunately I do not have a dedicated server and the instructions say:

 

Persistent Connections ;)

 

Persistent connections may improve the performance of dedicated servers that experience high loads.

 

Persistent connections should not be enabled for installations on shared hosting servers as it will usually degrade the performance instead of improving it.

 

At present I am waiting for my host company to migrate my files to a newer server and then I will try setting things up again.

At that point I will try changing these items if I still have problems.

Grant

Link to comment
Share on other sites

Do not set use_pconnect to 'true'

 

If you do then it will severely limit the number of customers able to run mysql queries on your website at the same time.

 

define('STORE_SESSIONS', 'mysql'); is correct and does not need adjusting.

 

Vger

Link to comment
Share on other sites

Do not set use_pconnect to 'true'

 

If you do then it will severely limit the number of customers able to run mysql queries on your website at the same time.

 

define('STORE_SESSIONS', 'mysql'); is correct and does not need adjusting.

 

Vger

Thanks, I won't.

Still waiting on host.

Grant

Link to comment
Share on other sites

Do not set use_pconnect to 'true'

 

If you do then it will severely limit the number of customers able to run mysql queries on your website at the same time.

 

define('STORE_SESSIONS', 'mysql'); is correct and does not need adjusting.

 

Vge

 

oh sorry for wrong advise then;)

 

and thanks for the hint

Link to comment
Share on other sites

Thanks, I won't.

Still waiting on host.

Grant

Just a quick update. Thought you all may get a kick out of this.

My host (who shall remain anonymous) first transferred the wrong website to the new server (but forgot the database).

My osC website and several others I own were down for 2 days while they tried to get things straight. Still no database and osC is still not migrated.

And this is no small hosting company!!

What's a boy to do!! :'(

Link to comment
Share on other sites

Your web hosting control panel is Plesk, and Plesk does use both an httpdocs and an httpsdocs folder when it is not correctly set up.

 

You need to get your hosting company to Sym Link (Symbolically Link) the httpsdocs folder to the httpdocs folder and this will save you all of the hassle involved with keeping two sets of files going.

 

Vger

Hi Vger,

I have been waiting on my hosting co. to get my files transfered to a newer server. They keep on messing everything up and it takes days to get it straight again. I have given up on them.

Can you explain to me what I would have to do if I don't have the httpdocs & httpsdocs linked. You mentioned something about two sets of files. Please elaborate.

Thanks,

Grant

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...