Dan_ Posted October 30, 2009 Posted October 30, 2009 Hi All, I have installed XAMPP on a virtual machine and have copied a live store to the server (127.0.0.1) However I can only load the index.php page, all the links on this page point to localhost/localhost/page-1 when they should point to localhost/page-1 Any idea why this would occur? Many thanks for your assistance.
multimixer Posted October 30, 2009 Posted October 30, 2009 You need to check your 2 configure.php files and possible the .htaccess file My community profile | Template system for osCommerce - New: Responsive | Feedback channel
♥geoffreywalton Posted October 30, 2009 Posted October 30, 2009 If you have your site in C:/Program Files/xampp/htdocs/testshop/ this should help. <?php define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', 'https://localhost'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'localhost'); define('HTTPS_COOKIE_DOMAIN', 'localhost'); define('HTTP_COOKIE_PATH', '/testshop/'); define('HTTPS_COOKIE_PATH', '/testshop/'); define('DIR_WS_HTTP_CATALOG', '/testshop/'); define('DIR_WS_HTTPS_CATALOG', '/testshop/'); 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/'); // BEGIN newdesk define('DIR_WS_RSS', DIR_WS_INCLUDES . 'modules/newsdesk/rss/'); // END newsdesk //USAGE - call the url /rss.php?box=categories or /rss.php?box=whats_new or /rss.php?box=newsdesk_latest.php define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', 'C:/Program Files/xampp/htdocs/testshop/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); i'll leave you to sort out the settings for configure.php in admin. Enjoy G Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Dan_ Posted October 31, 2009 Author Posted October 31, 2009 If you have your site in C:/Program Files/xampp/htdocs/testshop/ this should help. Many thanks for your help, I made the below edits and the links are now working correctly. I appreciate your valuable assistance
Dan_ Posted November 6, 2009 Author Posted November 6, 2009 I have found a new issue when testing my store, I am unable to add any items into the cart for some reason. I have changed the two configure files as per the above and clicking on an item does not add it to the shopping cart. Any suggestions would be appreciated as I yet to find a solution via the search feature (although am still searching)
Dan_ Posted November 6, 2009 Author Posted November 6, 2009 for reference here are my two configure.php files. Currently the site is stored on c:\XAMPP\htdocs here is configure.php From C:\XAMPP\htdocs\includes <?php /* 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://localhost'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://localhost'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'localhost'); define('HTTPS_COOKIE_DOMAIN', 'localhost'); define('HTTP_COOKIE_PATH', '/localhost'); define('HTTPS_COOKIE_PATH', '/localhost'); 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/'); //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', 'C:/XAMPP/htdocs/'); 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', 'xxxxxx_xxxxx'); define('DB_SERVER_PASSWORD', 'xxxxxx'); define('DB_DATABASE', 'xxxxxx_xxxxxx'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> and configure.php from C:\XAMPP\htdocs\admin\includes <?php /* 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://localhost'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://localhost'); define('HTTPS_CATALOG_SERVER', 'http://localhost'); define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('HTTPS_ADMIN_SERVER', ''); define('HTTP_COOKIE_DOMAIN', 'localhost'); define('HTTPS_COOKIE_DOMAIN', 'localhost'); 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', '/admin/'); define('DIR_WS_HTTPS_ADMIN', 'admin/'); define('DIR_FS_DOCUMENT_ROOT', 'C:/XAMPP/htdocs/public_html/'); // where the pages are located on the server define('DIR_FS_ADMIN', 'C:/XAMPP/htdocs/public_html/admin/'); // absolute path required define('DIR_WS_CATALOG', 'C:/XAMPP/htdocs/'); // absolute path required define('DIR_WS_HTTP_CATALOG', 'http://localhost'); define('DIR_WS_HTTPS_CATALOG', 'http://localhost'); define('DIR_FS_CATALOG', 'C:/XAMPP/htdocs/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 . '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/'); // 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', 'xxxxxx_xxxx'); define('DB_SERVER_PASSWORD', 'xxxxxx'); define('DB_DATABASE', 'xxxxxxx_xxxxxxx'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Any suggestions are appreciated.
Xpajun Posted November 6, 2009 Posted November 6, 2009 Changing: define('HTTP_COOKIE_DOMAIN', 'localhost'); define('HTTPS_COOKIE_DOMAIN', 'localhost'); define('HTTP_COOKIE_PATH', '/localhost'); define('HTTPS_COOKIE_PATH', '/localhost'); to: define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); Should solve your problem My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary
Dan_ Posted November 6, 2009 Author Posted November 6, 2009 Many thanks for your assistance, This has solved my issue. A huge thank you to you.
jfkafka Posted December 16, 2009 Posted December 16, 2009 Hi osCOMRADES, Have installed osc into xampp/htdocs/public_html and everything seems to work except the Top(home) link in the header (which goes to the xampp index page- http://localhost/xampp/) and the category and product links in the category box which go to; Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error 404 =============== the URL seems to be correct as compared to the host URL which works: http://localhost/public_html/unreal-tournament-p-22.html?cPath=2_19&osCsid=blahblahblah (this is the url on host - http://www.jkafka.com/unreal-tournament-p-22.html?cPath=2_19) tried Geoffrey Walton's configure settings replacing teststore with public_html also added public_html to .htaccess and restarted apache actually this is what the htaccess lines look like now: <Directory "/usr/local/apache/htdocs/public_html"> AllowOverride Options </Directory> also cleared browser history but still same results... seems like something in index.php? product_info.php? don't know what else to try without messing up what already works anyone know what I'm missing (besides a functioning brain) thanks for any guidance, jk
jfkafka Posted December 16, 2009 Posted December 16, 2009 STOP THE PRESSES! - the problem with categories and products not displaying was solved by disabling the ultimate seo5 contribution so that's probably a big clue as to that aspect of the problem still trying to isolate/identify why the Top(home) link is going to the xampp index page (http://localhost) instead of http://localhost/public_html but first there's the matter of after dumping the seo5 cache and re-enabling seo5 there are now numerous "Deprecated: Function ereg_replace() is deprecated in C:\server\xampp\htdocs\public_html\includes\modules\ultimate_seo_urls5\abstracts\aDataMap.php all over the page... better go put on the coffee- looks like a midnight marathon jk
jfkafka Posted December 16, 2009 Posted December 16, 2009 well, seo5 is re-enabled using rewrite and working (gosh i hope i din't just jinx myself) (had to add the seo5 htaccess code to .htaccess replacing /catalog/ with /public_html/ and am posting just in case anyone else might benefit from it who's using ultimate seo5 with xampp and using a subdirectory (in my case public_html) as far as the Top(home) link in the header going to localhost rather than localhost/public_html, it probably has to do with the breadcrumb trail so that's the path i'm now headed down... jk
Recommended Posts
Archived
This topic is now archived and is closed to further replies.