timmeah Posted February 26, 2008 Posted February 26, 2008 Ok so I am new to OScommerce, however have been tasked in migrating the shop from the online host to a local hosted server. I can not get even the admin page working and I am lost as to why. No doubt one of you guys/girls will know where I have gone wrong in what seems like trying everything. So here is hopefully enough info. Migrate from Linux server -> Windows IIS 6.0 I have Mysql and PHP installed and working correctly. I have installed a dummy OScommerce install just to test this and am happy enough. I backed up the database and whole website and restored locally. DB was restored by scripts. For the sake of just getting it working I use the root account in sql just to see something work. My virtual website directory is D:\PC Web\RepairShop within IIS. I have tried configuring the configure.php within the includes of both the general and admin sections of the site with no luck. Both admin and shop configure.php is posted in the effort someone may know what is wrong. I keep getting http 500 errors on the migrated site. I have checked permissions if I run the admin site it actually shows the status as waiting for http://blahblah/admin but never seems to find it. Are there other files that should be modded for this to work? Is there a way I can step through the website to determine where it is falling over? admin configure.php <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 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://www.pc.com.au'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.pc.com.au'); define('HTTPS_CATALOG_SERVER', ''); define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('HTTPS_ADMIN_SERVER', ''); define('HTTP_COOKIE_DOMAIN', 'www.pc.com.au'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', ''); define('ENABLE_SSL', 'false'); // secure webserver for checkout procedure? define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_WS_HTTP_ADMIN', '/public_html/admin/'); define('DIR_WS_HTTPS_ADMIN', '/public_html/admin/'); define('DIR_FS_DOCUMENT_ROOT', 'D:/PC Web/RepairShop/public_html//'); // where the pages are located on the server define('DIR_FS_ADMIN', 'D:/PC Web/RepairShop/public_html/admin//'); // absolute path required define('DIR_WS_CATALOG', '/public_html/'); // absolute path required define('DIR_WS_HTTP_CATALOG', '/public_html/'); define('DIR_WS_HTTPS_CATALOG', ''); define('DIR_FS_CATALOG', 'D:/PC Web/RepairShop/public_html//'); // absolute path required 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 . 'D:/PC Web/RepairShop/public_html/includes/languages//'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'D:/PC Web/RepairShop/public_html/images//'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'D:/PC Web/RepairShop/public_html/includes/modules//'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'D:/PC Web/RepairShop/public_html/backups//'); // Added for Templating define('DIR_FS_CATALOG_MAINPAGE_MODULES', DIR_FS_CATALOG_MODULES . 'mainpage_modules/'); define('DIR_WS_TEMPLATES', DIR_WS_CATALOG . 'templates/'); define('DIR_FS_TEMPLATES', DIR_FS_CATALOG . 'templates/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'root'); define('DB_SERVER_PASSWORD', 'Hj'); define('DB_DATABASE', 'osccre'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> shop configure.php <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 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://www.pc.com.au'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'http://www.pc.com.au'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/public_html/'); define('HTTPS_COOKIE_PATH', '/public_html/'); define('DIR_WS_HTTP_CATALOG', '/public_html/'); define('DIR_WS_HTTPS_CATALOG', '/public_html/'); 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/'); //Added for BTS1.0 define('DIR_WS_TEMPLATES', 'templates/'); define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/'); define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/'); //End BTS1.0 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', 'D:/PC Web/RepairShop/public_html//'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'D:/PC Web/RepairShop/public_html/download//'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'D:/PC Web/RepairShop/public_html/pub//'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'root'); define('DB_SERVER_PASSWORD', 'Hj'); define('DB_DATABASE', 'osccre'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.