Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Restore OSC from a Virtual Directory to Primary Directory


Electronjunkie

Recommended Posts

Hello,

 

I am having issues restoring my OSC v2.2 RC2 that is on a server (local) in a virtual directory to another server (for development and also local) which is in the Primary directory. Everything seems to be working fine until I try to access a secure page. Then i get a "Page Cannot Be Displayed" error. Basically everything with http:// works but https:// dosent.

 

Now i have checked to see if it was a server issue (I am using SME Server 7.3 for my servers) and i am able to access https://<ipaddress>/webamail as well as https://<ipaddress>/server-manager.

So ssl is working on the server but i am unable to access anything with https://www.<domainname>.com.

 

I thought i made the appropriate changes to my /admin/includes/configure.php :

 

<?php

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

define('HTTPS_SERVER', 'https://www.cbsrus.com');

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

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

define('ENABLE_SSL_CATALOG', 'true');

define('DIR_FS_DOCUMENT_ROOT', '/home/e-smith/files/ibays/Primary/html/');

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

define('DIR_FS_ADMIN', '/home/e-smith/files/ibays/Primary/html/admin/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', '/home/e-smith/files/ibays/Primary/html/');

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('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '*****');

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

define('DB_DATABASE', 'cbsrus');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

 

As well as making changes in the /includes/configure.php :

 

<?php

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

define('HTTPS_SERVER', 'https://www.cbsrus.com');

define('ENABLE_SSL', true);

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

define('HTTPS_COOKIE_DOMAIN', '.cbsrus.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/e-smith/files/ibays/Primary/html/');

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

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

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '*****');

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

define('DB_DATABASE', 'cbsrus');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

But to no avail, i still am unable to access secure web pages on the site.

 

I used phpmyadmin to restore the backed up database and it "seemed" to restore properly.

I created the database and set permissions and then i restored the backed up .sql file.

 

As far as backing up and restoring the web site. I just copied and pasted everything in my root directory on my Production server to my development server.

Production root directory being :

/home/e-smith/files/ibays/cbsrus.com/html/

 

Development root directory being :

/home/e-smith/files/ibays/Primary/html/

 

(I didn't use /catalog/ in the original installation as this was not necessary)

 

Now the reason i am setting everything up like this is due to the fact that for some reason SME Server wants the web site that i will be implimenting my GoDaddy Standard SSL Certificate to be the primary web site and not a virtual web site. The original server was not set up like this.

So i need to be able to switch the Primary web site and virtual OSC web site on the production server around.

 

If anyone has any informatin leading to the solution and capture of this issue please let me know. If you need more information, I will be happy to post it. Thank you in advance for all your help.

Link to comment
Share on other sites

I hear the DUH sound world wide right now... I am truly sorry for the post. This is a simple case of thinking to hard for a simple answer. Just for all thoes that end up doing the same as i have just done. RULE #1 of setting up your network for hosting .... MAKE SURE THE PORT IS OPEN TO THE CORRECT IP ADDRESS ON YOUR ROUTER !!!!!!!!!!! :blink: Issue resolved and case closed.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...