MagickWomyn Posted September 3, 2006 Share Posted September 3, 2006 I've got Xampp on my pc to work on development sites. I've got a copy of a store that I need to work on and I'm having trouble figuring out the correct path in both configure files. The store is inside a folder, not the root or catalog folder because of other sites under construction. I've got the site up at *http://127.0.0.1 (no * in the php file). The site is located in C:/program files/xampp/htdocs/BRM. The big problem is what path to use for everything to work right. Any help would be appreciated. Link to comment Share on other sites More sharing options...
♥FWR Media Posted September 3, 2006 Share Posted September 3, 2006 I've got Xampp on my pc to work on development sites. I've got a copy of a store that I need to work on and I'm having trouble figuring out the correct path in both configure files. The store is inside a folder, not the root or catalog folder because of other sites under construction. I've got the site up at *http://127.0.0.1 (no * in the php file). The site is located in C:/program files/xampp/htdocs/BRM. The big problem is what path to use for everything to work right. Any help would be appreciated. I use pure apache on my PC (didn't bother with a package) This should work .. define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', ''); define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'localhost'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/BRM/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/BRM/'); 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', 'C:/program files/xampp/htdocs/BRM/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
MagickWomyn Posted September 4, 2006 Author Share Posted September 4, 2006 I use pure apache on my PC (didn't bother with a package) This should work .. define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', ''); define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'localhost'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/BRM/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/BRM/'); 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', 'C:/program files/xampp/htdocs/BRM/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); I've got the catalog side of it working. Thanks! I'm trying to fix the admin side. I get an error when I try to access it. Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. If you think this is a server error, please contact the webmaster. Error 500 127.0.0.1 09/03/06 20:35:29 Apache/2.2.2 (Win32) DAV/2 mod_ssl/2.2.2 OpenSSL/0.9.8a mod_autoindex_color PHP/4.4.2 Is this from the path not being correct in the admin/configure? Or is it correct and I've got something else going on? Here's what I've got now: define('HTTP_SERVER', 'http://127.0.0.1'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://127.0.0.1'); define('DIR_FS_DOCUMENT_ROOT', 'C:/Program Files/xampp/htdocs/BRM/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/BRM/admin/'); // absolute path required define('DIR_FS_ADMIN', 'C:/Program Files/xampp/htdocs/BRM/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', 'C:/Program Files/xampp/htdocs/BRM/'); // absolute path required Thanks again for the assistance! Link to comment Share on other sites More sharing options...
♥FWR Media Posted September 4, 2006 Share Posted September 4, 2006 I've got the catalog side of it working. Thanks! I'm trying to fix the admin side. I get an error when I try to access it. Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. If you think this is a server error, please contact the webmaster. Error 500 127.0.0.1 09/03/06 20:35:29 Apache/2.2.2 (Win32) DAV/2 mod_ssl/2.2.2 OpenSSL/0.9.8a mod_autoindex_color PHP/4.4.2 Is this from the path not being correct in the admin/configure? Or is it correct and I've got something else going on? Here's what I've got now: define('HTTP_SERVER', 'http://127.0.0.1'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://127.0.0.1'); define('DIR_FS_DOCUMENT_ROOT', 'C:/Program Files/xampp/htdocs/BRM/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/BRM/admin/'); // absolute path required define('DIR_FS_ADMIN', 'C:/Program Files/xampp/htdocs/BRM/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', 'C:/Program Files/xampp/htdocs/BRM/'); // absolute path required Thanks again for the assistance! Try changing both instances of http://127.0.0.1 to http://localhost Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
MagickWomyn Posted September 4, 2006 Author Share Posted September 4, 2006 Try changing both instances of http://127.0.0.1 to http://localhost If I change it to localhost, I get the error message... unable to connect to web server. :( Would this have anything to do with the admin still being password protected? Link to comment Share on other sites More sharing options...
♥FWR Media Posted September 4, 2006 Share Posted September 4, 2006 If I change it to localhost, I get the error message... unable to connect to web server. :( Would this have anything to do with the admin still being password protected? What I don't understand is why the installer didn't install correctly in the first place. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
emanresu Posted September 4, 2006 Share Posted September 4, 2006 What I don't understand is why the installer didn't install correctly in the first place. If you are running XAMPP from the Xampp Control Panel , is Apache AND Mysql both running? Citizen of US Minor Outlying Islands Link to comment Share on other sites More sharing options...
emanresu Posted September 4, 2006 Share Posted September 4, 2006 Try changing define('DIR_WS_CATALOG', '/'); // absolute path required to define('DIR_WS_CATALOG', '/brm/'); // absolute path required. Citizen of US Minor Outlying Islands Link to comment Share on other sites More sharing options...
MagickWomyn Posted September 5, 2006 Author Share Posted September 5, 2006 Try changing define('DIR_WS_CATALOG', '/'); // absolute path required to define('DIR_WS_CATALOG', '/brm/'); // absolute path required. I've verified that Apache & Mysql are running. Changing to /BRM/ gives the same error. I tried deleting .htaccess from admin directory. I can get to the admin screen that way, but I get a 404 error when I try to access anything in the admin. Link to comment Share on other sites More sharing options...
spax Posted September 5, 2006 Share Posted September 5, 2006 Maybe you would be best installing a new store, then you would have 2 correct configure files. Just temporarily rename your BRM directory first. Link to comment Share on other sites More sharing options...
MagickWomyn Posted September 5, 2006 Author Share Posted September 5, 2006 Maybe you would be best installing a new store, then you would have 2 correct configure files. Just temporarily rename your BRM directory first. I had tried this because I didn't want to edit a "live" store and figured I could tweak it on my PC. I've even compared the configure files against my local machine files and can't find a solution. I've got the catalog side running, but can't get past the landing page in admin. I have thought about that option. The store copy I have has been modified but as far as I can tell it's all cosmetic. There is a forum installed on it, but that has been commented out because it won't be used. I'm assuming if I do a new install I'll have to do the following to the new site: 1. Copy the information files. 2. Copy the stylesheet. 3. Import the database. Would it be feasible to copy the latest version store (it has contribs installed) from my local drive to the website and then change the configure files to match the original site settings? Link to comment Share on other sites More sharing options...
♥FWR Media Posted September 5, 2006 Share Posted September 5, 2006 I had tried this because I didn't want to edit a "live" store and figured I could tweak it on my PC. I've even compared the configure files against my local machine files and can't find a solution. I've got the catalog side running, but can't get past the landing page in admin. I have thought about that option. The store copy I have has been modified but as far as I can tell it's all cosmetic. There is a forum installed on it, but that has been commented out because it won't be used. I'm assuming if I do a new install I'll have to do the following to the new site: 1. Copy the information files. 2. Copy the stylesheet. 3. Import the database. Would it be feasible to copy the latest version store (it has contribs installed) from my local drive to the website and then change the configure files to match the original site settings? Maybe this is obvious but it's not obvious to me through the above threads. Can you install a fresh Osc on your local server and it works? Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
MagickWomyn Posted September 5, 2006 Author Share Posted September 5, 2006 Maybe this is obvious but it's not obvious to me through the above threads. Can you install a fresh Osc on your local server and it works? Yes. I can install a fresh version. I have done that to have a new store to work with and try out contribs. The one I'm working on now is the latest version of OSC with Header Tags, FAQ Desk, and several cosmetic changes. It works fine. Link to comment Share on other sites More sharing options...
♥FWR Media Posted September 5, 2006 Share Posted September 5, 2006 Yes. I can install a fresh version. I have done that to have a new store to work with and try out contribs. The one I'm working on now is the latest version of OSC with Header Tags, FAQ Desk, and several cosmetic changes. It works fine. And admin works on a fresh install? Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
MagickWomyn Posted September 5, 2006 Author Share Posted September 5, 2006 And admin works on a fresh install? Everything works fine on the local install. Just can't get the copied site to work. Link to comment Share on other sites More sharing options...
spax Posted September 5, 2006 Share Posted September 5, 2006 Does your live store have Ultimate SEO installed? Link to comment Share on other sites More sharing options...
MagickWomyn Posted September 5, 2006 Author Share Posted September 5, 2006 Does your live store have Ultimate SEO installed? The only change I have found to the live store is a forum contrib. Link to comment Share on other sites More sharing options...
MagickWomyn Posted September 5, 2006 Author Share Posted September 5, 2006 The only change I have found to the live store is a forum contrib. I'll post my configure files, maybe someone can see something I missed. The catalog configure seems to be fine because the catalog side functions. Here's the catalog side - located in C:\Program Files\xampp\htdocs\BRM\includes\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://127.0.0.1'); // 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', '127.0.0.1'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_PATH', '/BRM/'); define('DIR_WS_HTTP_CATALOG', '/BRM/'); 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', 'C:/Program Files/xampp/htdocs/BRM/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); ?> Here's the admin side - located in C:\Program Files\xampp\htdocs\BRM\admin\includes\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://127.0.0.1'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://127.0.0.1'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', 'C:/Program Files/xampp/htdocs/BRM/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/BRM/admin'); // absolute path required define('DIR_FS_ADMIN', 'C:/Program Files/xampp/htdocs/BRM/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/BRM/'); // absolute path required define('DIR_FS_CATALOG', 'C:/Program Files/xampp/htdocs/BRM/'); // 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 . '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/'); ?> Link to comment Share on other sites More sharing options...
♥Vger Posted September 5, 2006 Share Posted September 5, 2006 The only query I have is that XAMPP usually installs to c:/apachefriends/xampp/htdocs/ Vger Link to comment Share on other sites More sharing options...
spax Posted September 6, 2006 Share Posted September 6, 2006 I run xampp from Program Files too. The 500 error, is an internal server error so maybe your forum uses a CGI script? Clutching at straws here! :huh: Link to comment Share on other sites More sharing options...
MagickWomyn Posted September 6, 2006 Author Share Posted September 6, 2006 The only query I have is that XAMPP usually installs to c:/apachefriends/xampp/htdocs/ Vger When I installed Xampp I used the default install path for this version. XAMPP Control Panel Version 2.3 (17. May, 2006) Link to comment Share on other sites More sharing options...
MagickWomyn Posted September 6, 2006 Author Share Posted September 6, 2006 I solved the problem. I used a backup of the development copy of the admin\includes\configure.php. Changed the path and it worked. Thanks to everyone for trying to 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.