Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

shared ssl- can't edit config. files.


Guest

Recommended Posts

Special note to shared SSL users, in particular bluehost users. Now I don't really recommend Shared SSL, although it's worked for many. I'd prefer the real thing. Anyway, with bluehost, your config files would look like this (note: "username" refers to the username given to you by Bluehost):

 

Includes/Configure.php:

define('HTTP_SERVER', 'http://www.yoursite.com');

define('HTTPS_SERVER', 'https://secure.bluehost.com/~username');

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', '.yoursite.com');

define('HTTPS_COOKIE_DOMAIN', 'secure.bluehost.com/~username');

 

Admin/Includes/Configure.php:

define('HTTP_SERVER', 'https://www.yoursite.com');

define('HTTP_CATALOG_SERVER', 'https://www.yoursite.com');

define('HTTPS_CATALOG_SERVER', 'https://secure.bluehost.com/~username');

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

 

As is any case with Shared SSL, you'll have to contact your host for the proper configure files, but a simple google search will help, seeing as that many users using the same Shared SSL have already installed OSC beforehand, and have posted about it. So search the web, or call your host -- but if you're going through Bluehost, you already know now. Good luck!

 

I followed the above advice and am getting 2 errors.

 

1. My includes/config file will not save the changes. It comes back with a 'fatal error or timeout occured while processing this request'. and when I check it hasn't saved the changes.

 

2. I don't have the last three lines in my admon/includes/config file that the above post says to change.

 

I haven't edited either of these files before so any ideas? Please help I just need to get my store back up and running after good old Agoracart crashed. Osc Commerce is so much better but having a few teething issues.

Link to comment
Share on other sites

1. How are you trying to change the file? FTP/File Browser? Do you have permissions to do so? Filezilla seems to work for bunches of people ...

 

2. You don't have any of the last three AT ALL??? :o

Even at a Mensa convention someone is the dumbest person in the room.

Link to comment
Share on other sites

1. How are you trying to change the file? FTP/File Browser? Do you have permissions to do so? Filezilla seems to work for bunches of people ...

 

2. You don't have any of the last three AT ALL??? :o

I am editing through my CPanel. I just thought about the permissions too. Having checked it is set to read for user/group/world only. No write or execute permissions. What should the settings be?

 

Also for the admin/includes/configure.php this is the script - as mentioned I haven't edited this yet, this is what was installed:

 

<?php

/*

$Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://mysite.co.nz/osc'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://mysite.co.nz');

define('HTTPS_CATALOG_SERVER', 'https://mysite.co.nz/osc');

define('ENABLE_SSL_CATALOG', 'false'); // 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', '/osc/');

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'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'kelleigh_osc1');

define('DB_SERVER_PASSWORD', 'LpPxu4p2Hc');

define('DB_DATABASE', 'kelleigh_osc1');

define('DB_TABLE_PREFIX', 'osc1_');

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

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

?>

 

You can see the last three lines of the SSL post aren't in there...what to do???

Link to comment
Share on other sites

OK, now first of all change your username AND password for the database NOW!

 

And the last three lines are there, they are just in the very beginning of the file - now go change your username and password - NEVER post these, EVER!

 

As far as the permissions are concerned, I'm not sure what cpanel runs as since I always use ftp to upload changes, but I'd change the permissions to something more lose, see if I can make changes and then change them back right away.

Even at a Mensa convention someone is the dumbest person in the room.

Link to comment
Share on other sites

OK, now first of all change your username AND password for the database NOW!

 

And the last three lines are there, they are just in the very beginning of the file - now go change your username and password - NEVER post these, EVER!

 

As far as the permissions are concerned, I'm not sure what cpanel runs as since I always use ftp to upload changes, but I'd change the permissions to something more lose, see if I can make changes and then change them back right away.

hi, yes don't worry, those are not the real details up there. i am a bit dumb at times but not a total idiot :)

 

As for those three lines I don't know where they appeared from but I am sure they weren't there -yesterday- i searched the script for so long I must have been going blind and bonkers. Unless I was looking at the wrong config file...am sure i wasn't.

 

I changed the permissions on the right ones anyway and this worked. If anyone else uses cpanel and runs into the same problem just check the permissions with other folders.

 

See now this is why I refrain from posting! :blush:

 

Now I have made the changes and I am getting an error message - "this page cannot be found" when I hit the checkout button. It is pointing to the right link.

 

This is what I have changed in admin/includes/configure.php:

 

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

define('HTTP_CATALOG_SERVER', 'https://mywebsite.com');

define('HTTPS_CATALOG_SERVER', 'https://webhostlink/~username');

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

 

This is what I have changed in osc/includes/configure.php:

 

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

define('HTTPS_SERVER', 'https://webhostlink/~username'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', '.mywebsite.com');

define('HTTPS_COOKIE_DOMAIN', 'webhostlink/~username');

 

Can you see anything I am doing wrong? My webhost provider said the secure link was "webhostlink/~username/" but when I entered the slash it comes up as a double slash in the address bar. So I have removed it and I still get the same "page not found" error. I have checked the spelling and all looks correct.

 

I am not sure if the fullstop is supposed to be there with the ".mywebsite.com" so I have tried it with and without to no avail. i am quite sure the secure link from my webhost provider is correct as I have used it before. Can you see what I don't see?

Link to comment
Share on other sites

Also since changing - I can't access the admin area. I can get to the front page of it but when I click on "catalogue" it gives the same "page not found" error. It also said there is a problem with my security certificate.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...