wooshman Posted August 20, 2005 Share Posted August 20, 2005 Hello all, i am hoping someone can shed some light on my problem. I am running WinXP Pro, Apache 2.0.54, Active Perl, MySQL and PHP4. My problem is this: The web based installation works fine and detects where things are going to run from. The database is created and tables created etc. The problem starts when I get the choice of Goto Catalog or Goto Admin the url for both are doubled, i.e http://://www.bdtsystems.ath.cx/catalog/://www.bdtsystems.ath.cx/catalog/index.php? As you can see I have a problem ;) Does anyone have any idea's please? Kind regards Woosh Link to comment Share on other sites More sharing options...
♥Vger Posted August 20, 2005 Share Posted August 20, 2005 The problem will be located somewhere in your includes/configure.php files (one in admin one in catalog). Vger Link to comment Share on other sites More sharing options...
wooshman Posted August 20, 2005 Author Share Posted August 20, 2005 The problem will be located somewhere in your includes/configure.php files (one in admin one in catalog). Vger <{POST_SNAPBACK}> Hi thank you for such a speedy response. I have had a look at all the configure.php files and made a few changes and got a couple of stages further: Have a look please as in I now have images. But my urls are still slightly messed. Does anyone have osCommerce running on a windows machine, if so, please could you show me the contents of your to configure.php files please? I think i must be missing something. Many thanks in advance Woosh Link to comment Share on other sites More sharing options...
Guest Posted August 20, 2005 Share Posted August 20, 2005 easy way for us to help you would be for you to post your configure.php files here WITHOUT THE DATABASE CONNECTION INFO Link to comment Share on other sites More sharing options...
wooshman Posted August 20, 2005 Author Share Posted August 20, 2005 easy way for us to help you would be for you to post your configure.php files here WITHOUT THE DATABASE CONNECTION INFO <{POST_SNAPBACK}> Thank you. Here is my admin/includes/configure.php <?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', ''); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', ''); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', 'C:/web/www.bdtsystems.ath.cx/catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', 'admin/'); // absolute path required define('DIR_FS_ADMIN', 'C:/web/www.bdtsystems.ath.cx/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', 'catalog/'); // absolute path required define('DIR_FS_CATALOG', 'C:/web/www.bdtsystems.ath.cx/catalog/'); // 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/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '****'); define('DB_SERVER_PASSWORD', '*********'); define('DB_DATABASE', 'cart'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> And here is my includes/configure.php <?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', ''); // 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', 'www.bdtsystems.ath.cx'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', 'www.bdtsystems.ath.cx/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', 'C:/web/www.bdtsystems.ath.cx/catalog/'); 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', 'root'); define('DB_SERVER_PASSWORD', 'wooshman10'); define('DB_DATABASE', 'cart'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> How it stands at the moment is better than it was after a clean install. I have it installed on my server in the following folder: c:\web\www.bdtsystems.ath.cx\catalog the url is www.bdtsystems.ath.cx Many many thanks Woosh Link to comment Share on other sites More sharing options...
satish Posted August 20, 2005 Share Posted August 20, 2005 Hello all, i am hoping someone can shed some light on my problem. I am running WinXP Pro, Apache 2.0.54, Active Perl, MySQL and PHP4. My problem is this: The web based installation works fine and detects where things are going to run from. The database is created and tables created etc. The problem starts when I get the choice of Goto Catalog or Goto Admin the url for both are doubled, i.e http://://www.bdtsystems.ath.cx/catalog/://www.bdtsystems.ath.cx/catalog/index.php? As you can see I have a problem ;) Does anyone have any idea's please? Kind regards Woosh <{POST_SNAPBACK}> In admin and in catalog we do nat in includes folder file names configure.php its there that we place the constant equivalents do check and fix those files. Satish Mantri Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
♥Vger Posted August 20, 2005 Share Posted August 20, 2005 catalog/includes/configure.php ----------------------------------- define('HTTP_SERVER', 'http://www.bdtsystems.ath.cx'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); catalog/admin/includes/configure.php -------------------------------------------- define('HTTP_SERVER', 'http://www.bdtsystems.ath.cx'); define('HTTP_CATALOG_SERVER', 'http://www.bdtsystems.ath.cx'); define('DIR_FS_DOCUMENT_ROOT', 'C:/web/www.bdtsystems.ath.cx'); define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_WS_CATALOG', '/catalog/'); You should not have posted your db user name and password! Vger Link to comment Share on other sites More sharing options...
satish Posted August 20, 2005 Share Posted August 20, 2005 Hello all, i am hoping someone can shed some light on my problem. I am running WinXP Pro, Apache 2.0.54, Active Perl, MySQL and PHP4. My problem is this: The web based installation works fine and detects where things are going to run from. The database is created and tables created etc. The problem starts when I get the choice of Goto Catalog or Goto Admin the url for both are doubled, i.e http://://www.bdtsystems.ath.cx/catalog/://www.bdtsystems.ath.cx/catalog/index.php? As you can see I have a problem ;) Does anyone have any idea's please? Kind regards Woosh <{POST_SNAPBACK}> Hello please do refer to this and set your parameters define('HTTP_SERVER', 'http://www.site.com/catalog/'); // eg, http://localhost - should not be empty define('HTTPS_SERVER', 'http://www.site.com/catalog/'); // eg, https://localhost - should not be empty define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.site.com/'); define('HTTPS_COOKIE_DOMAIN', ''); 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', '............/www.site.com/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_FS_DOCUMENT_ROOT','.............................../www.site.com/catalog/'); define('DIR_WS_CATALOG', ''); // define our database connection define('DB_SERVER', 'server'); // eg, localhost - should not be empty for define('DB_SERVER_USERNAME', 'user'); define('DB_SERVER_PASSWORD', 'pwd'); define('DB_DATABASE', 'dbname'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Satish Mantri Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
wooshman Posted August 20, 2005 Author Share Posted August 20, 2005 Hi, Well I have tried both of your suggestions and even installed it on a hosted site which comes with osCommerce ready to install. I then looked at both the configure.php files and mine seem fine. So at the moment I am at a loss. Any more idea's before I give up? I will happily create an ftp account if someone would be good enough to look at what I have?? :-" Many thanks Woosh Link to comment Share on other sites More sharing options...
♥Vger Posted August 20, 2005 Share Posted August 20, 2005 You should not append the trailing slash as done here: define('HTTP_SERVER', 'http://www.site.com/catalog/'); // eg, http://localhost - should not be empty define('HTTPS_SERVER', 'http://www.site.com/catalog/'); // eg, https://localhost - should not be empty There is no trailing slash on a cookie domain: define('HTTP_COOKIE_DOMAIN', 'www.site.com/'); And the document root is the root and not a root plus a folder: define('DIR_FS_DOCUMENT_ROOT','.............................../www.site.com/catalog/'); Well I have tried both of your suggestions and even installed it on a hosted site which comes with osCommerce ready to install If the osCommerce install you first reported was on your home computer, then you had the setup all wrong. It should have been: define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'localhost'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', ''); Vger Link to comment Share on other sites More sharing options...
wooshman Posted August 22, 2005 Author Share Posted August 22, 2005 If the osCommerce install you first reported was on your home computer, then you had the setup all wrong. Vger <{POST_SNAPBACK}> The machine it is running on is at home yes, but it is a fully blown web/ftp/mail etc etc server. When I install web aplications I do it as if it were hosted somewhere else in the world. As it turns out, that osCommerce was not happy with the configuration I had and have changed apache version. All is fine now. Many thanks for your help and sorry I had not though of this before. Woosh Link to comment Share on other sites More sharing options...
satish Posted August 22, 2005 Share Posted August 22, 2005 The machine it is running on is at home yes, but it is a fully blown web/ftp/mail etc etc server. When I install web aplications I do it as if it were hosted somewhere else in the world. As it turns out, that osCommerce was not happy with the configuration I had and have changed apache version. All is fine now. Many thanks for your help and sorry I had not though of this before. Woosh <{POST_SNAPBACK}> Do check on your config file.No other issue can create this bug. Satish Mantri Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
satish Posted August 22, 2005 Share Posted August 22, 2005 Hi, Well I have tried both of your suggestions and even installed it on a hosted site which comes with osCommerce ready to install. I then looked at both the configure.php files and mine seem fine. So at the moment I am at a loss. Any more idea's before I give up? I will happily create an ftp account if someone would be good enough to look at what I have?? :-" Many thanks Woosh <{POST_SNAPBACK}> Please do create and account on FTP and email Me I wil fix that for you. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
♥Vger Posted August 22, 2005 Share Posted August 22, 2005 Please do create and account on FTP and email Me I wil fix that for you. This is an install on a local computer, so you can't have FTP access to it. Vger Link to comment Share on other sites More sharing options...
wooshman Posted August 22, 2005 Author Share Posted August 22, 2005 Satish, Thank for your reply and kind offer, I have sorted it out now, but that doen not mean I may not need your help in the future. Vger, It is a web server, no different to one you would use to host your web sites where ever and whoever runs them. It has full ftp access, email, and all the other bits and pieces you need to run a web site remotely. So yes you can have ftp access to it. It currently hosts 7 other sites with fully qualified domain names. Even if I had one pc running, I would still be able to give ftp access by installing the relevent ftp server software. Thanks for you input though. Regards Woosh Link to comment Share on other sites More sharing options...
♥Vger Posted August 22, 2005 Share Posted August 22, 2005 Vger, It is a web server, no different to one you would use to host your web sites where ever and whoever runs them. Just wish you had said that in your first post. I found the references to the domain name and then to localhost and a local web server to be confusing. The replies you'd have got would have been more relevant to your problem. Vger Link to comment Share on other sites More sharing options...
wooshman Posted August 22, 2005 Author Share Posted August 22, 2005 Sorry it was missleading. I know for next time. Thank for all your help anyway. :D Woosh Link to comment Share on other sites More sharing options...
SkippyGirl Posted September 15, 2005 Share Posted September 15, 2005 I also had the double URL problem. I used Vger's solution and it worked great! Thank you so much! :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.