Guest Posted July 21, 2005 Share Posted July 21, 2005 I moved on eof my stores from one host to another. The previous host used HSPHERE CP and the new one is using CPanel. Both are UNIX hosting. The way I did it was simple. I just copied all my store files to my HD, then uploaded it to my new host. Same goes for my database, just uploaded it to my new host and new DB. It did nto work, so I installed a OSC in another folder using Fantastico to take a look at the way it cofigured the configure.php files. SO I made my original store's configure.php files the same way but still no luck. My store just won't load in (but the one Fantastico installed is just fine). I just get the "Page cannot be found" page. The admin part loads in fine, it's jsut the catalog part of the site that jsut won't load in. Strange. I checked to make sure that all the files were in fact copied and they're all there. I'm stumped. Any help to diagnose this problem would be greatly appreciated. This is the /includes.php file from my store when hosted with the HSPHERE host... <?php /* $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $ 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://mysite.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://mysite.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'http://mysite.com'); define('HTTPS_COOKIE_DOMAIN', 'https://mysite.com'); define('HTTP_COOKIE_PATH', '/shop/'); define('HTTPS_COOKIE_PATH', '/shop/'); define('DIR_WS_HTTP_CATALOG', '/shop/'); define('DIR_WS_HTTPS_CATALOG', '/shop/'); 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', '/hsphere/local/home/userID/mysite.com/shop/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'mysql2.neureal.com'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'userID'); define('DB_SERVER_PASSWORD', 'pass'); define('DB_DATABASE', 'db_name'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' // CLR 020605 defines needed for Product Option Type feature. define('PRODUCTS_OPTIONS_TYPE_SELECT', 0); define('PRODUCTS_OPTIONS_TYPE_TEXT', 1); define('PRODUCTS_OPTIONS_TYPE_RADIO', 2); define('PRODUCTS_OPTIONS_TYPE_CHECKBOX', 3); define('TEXT_PREFIX', 'txt_'); define('PRODUCTS_OPTIONS_VALUE_TEXT_ID', 0); //Must match id for user defined "TEXT" value in db table TABLE_PRODUCTS_OPTIONS_VALUES define('MAX_DISPLAY_FEATURED_PRODUCTS_LISTING', '5'); ?> And here is the one I modeled after the one that works with the store I installed using Fantastico on my new CPanel host... <?php /* $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $ 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://mysite.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://securenetpages.com/~userID'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'mysite.com'); define('HTTPS_COOKIE_DOMAIN', 'securenetpages.com/~userID'); define('HTTP_COOKIE_PATH', '/shop/'); define('HTTPS_COOKIE_PATH', '/shop/'); define('DIR_WS_HTTP_CATALOG', '/shop/'); define('DIR_WS_HTTPS_CATALOG', '/shop/'); 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/userID/public_html/shop/'); 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', 'userID'); define('DB_SERVER_PASSWORD', 'pass'); define('DB_DATABASE', 'db_nameC'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' // CLR 020605 defines needed for Product Option Type feature. define('PRODUCTS_OPTIONS_TYPE_SELECT', 0); define('PRODUCTS_OPTIONS_TYPE_TEXT', 1); define('PRODUCTS_OPTIONS_TYPE_RADIO', 2); define('PRODUCTS_OPTIONS_TYPE_CHECKBOX', 3); define('TEXT_PREFIX', 'txt_'); define('PRODUCTS_OPTIONS_VALUE_TEXT_ID', 0); //Must match id for user defined "TEXT" value in db table TABLE_PRODUCTS_OPTIONS_VALUES define('MAX_DISPLAY_FEATURED_PRODUCTS_LISTING', '5'); ?> Thanks Link to comment Share on other sites More sharing options...
♥Vger Posted July 21, 2005 Share Posted July 21, 2005 First question is - have you got a dedicated ip address with your new host and did you install the full ssl cert with the new host. Next question is - is the certificate correct for the type of server your site is now on. Different servers with different operating systems require different ssl certs e.g. FreeBSD operating system has one type of cert, while Linux has another type. Try setting enable_ssl to false and see if that works. Vger Link to comment Share on other sites More sharing options...
Guest Posted July 21, 2005 Share Posted July 21, 2005 OK. I tried disaableing SSL and that does not work. Now, to give you SLL cert info... First of all, as I said, both the old and new host are unix accounts. The old host (HSPHERE host) was a regular shared hosting account (actually multidomain) and the new host is a reseller hosting account which uses CPanel. Now, on my old (HSPHERE host), I was using an SSL cert jsut fo rthis site. It expired 2 days ago so I never renewed it. What I did with my new host is I bought and SSL cert for my main domain (remember, it's a reseller account) and I set up my own shared SSL becasue my new host does not offer their own shared SSL. THe cert is working fine and the shared hosting is workign fine, too. I simply decided to set up shared SSL becasue I have many sites and I can;t really afford to buy a cert for every site right now. However, I'm not too sure any of this matters. My cert is not the problem. My non-SSL site should load in regardless - from my experience. Keep in mind, as I said in my OP (I think), if I install an OSC site using Fantastico everything works just fine, including the secure pages. If you need more info, let me know. Link to comment Share on other sites More sharing options...
♥Vger Posted July 22, 2005 Share Posted July 22, 2005 If your host is running osCommerce as a cgi then the auto-install injects a reference to the cgi bin in the head of each file. PowWeb do this on their setup. Have a look in the files you install via Fantastico to see if this is happening. Vger Link to comment Share on other sites More sharing options...
Guest Posted July 22, 2005 Share Posted July 22, 2005 What exactly would I be looking for? I don't think this is the case, though. Link to comment Share on other sites More sharing options...
♥Vger Posted July 22, 2005 Share Posted July 22, 2005 Look for a pathway in the head section of each file which links to the cgi bin. I know that with Pow Web (who use FreeBSD as their OS with php run as a cgi) you can only auto-install osCommerce into a folder called 'catalog' and if you try to install into the root (by removing the 'catalog' from the pathway before installing) it won't work. Similarly, if you upload the files and run the osCommerce installer it won't work, because there's no pathway to the cgi bin in the head section of each file. Vger Link to comment Share on other sites More sharing options...
Guest Posted July 22, 2005 Share Posted July 22, 2005 Well, guess what, this is not the case. They do not install as CGI. ALso, guess what else. The problem is fixed. Don't ask me what was fixed, though. All I know is that after a full day of wasting time on it, I turned off my computer, smoked a pack of smokes, turned on my computer, and VOILA! Everything is fine. Who said cigarettes are bad? :D Thanks for your help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.