Jump to content

Recommended Posts

Posted

I realize that this topic has been posted again and again, however I'm getting lost in all the suggestions.

 

I realize you guys are with TCH, but your forums seem to be more helpful than the OsCommece...Any help would be great.

 

I got a dedicated SSL a couple of days ago. Before I changed my configure.php files averything seemed to be fine. Now I have lost all images?

 

I also don't really understand what needs to be done to connect to the https:// form my http://??

 

 

 

Catalog/includes

 

// Define the webserver and path parameters

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

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

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

define('HTTPS_SERVER', 'https://www.welovescience.com'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

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

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

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

define('DIR_WS_HTTPS_CATALOG', '/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

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', 'true'); // use persistent connections?

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

?>

 

 

admin/includes

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

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

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

define('HTTPS_CATALOG_SERVER', 'https://www.welovescience.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', '/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', '*****');

define('DB_SERVER_PASSWORD', '*****');

define('DB_DATABASE', '*****');

define('USE_PCONNECT', 'true');

define('STORE_SESSIONS', 'mysql');

?>[/code]

 

 

I've gotten this far, don't wanna give up just yet!

Posted

If I look at the path for the missing images on your site,

I see

https://www.welovescience.com/welovescience/catalog/images/wacky%20experiments.jpg

 

note the extra /welovescience/ in the middle.

If I use

https://www.welovescience.com/catalog/images/wacky%20experiments.jpg

 

it works.

 

 

So something in the config adding the extra name.

Also you may want to stay away from spaces in the file names

 

 

May be this will help some spot the problem

Posted

Wahoo, I see the images fine.

 

Warning: The downloadable products directory does not exist: /home/weloves/public_html/catalogdownload/

 

Does the folder exist?

and is the permissions set per instructions?

Posted (edited)

Should there be a /

in front of download ?

 

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

 

as in

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

 

this is saying use the catalog folder with download appeneded right after

as opposed to appending /dowload

Edited by TCH-Don
Posted

It didn't exsist, I made it exsist and the error went away?? Not sure if that was the right thing to do or not, but the error is gone!

 

 

That's one step closer...I guess!

Posted

I got all my pics and links back!

 

Now back to my original question....

 

Is there anything I need to do with the dedicated SSL I got, or is the setup 100% complete when you guys install it on your end?

Posted

Looks good from what I can see and giving a quick compare of my config files. Remember with osCommerce you will not be in secure mode until the customer goes to their cart so dont worry if you dont see https on every page.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...