Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

configure.php


bbhattarai

Recommended Posts

Here is the contents of configure.php without database info.

 

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', 'I:/Web/amanita.solutiondreamer.com/catalog/'); // where the pages are located on the server

define('DIR_WS_ADMIN', 'amanita/admin/'); // absolute path required

define('DIR_FS_ADMIN', 'I:/Web/amanita.solutiondreamer.com/catalog/admin/'); // absolute pate required

define('DIR_WS_CATALOG', 'amanita/'); // absolute path required

define('DIR_FS_CATALOG', 'I:/Web/amanita.solutiondreamer.com/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/');

 

 

I seem to have installed wrong path somehow. Every path has repeated twice like

http://localhost/catalog/install/://localh...admin/index.php. Just like here every link has two http://localhost/catalog/(file or folder name). Where I went wrong?

 

Please help.

 

Thanks

Link to comment
Share on other sites

The current value for the HTTP_SERVER and HTTP_CATALOG_SERVER constants have the string value of '://'. Obviously this is not going to work, it is very strange to get this value.

 

Here is what those two lines should look like if your site is on your local computer:

 

  define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://localhost');

Link to comment
Share on other sites

By the way, are you aware that there are 2 configure.php? One is for the catalog section and the other is for admin section.

 

Have fun! :thumbsup:

Link to comment
Share on other sites

Your config file has a lot of errors, which will stop your site working. I have edited below to what they should be, assuming that your website is on a subdomain at http://amanita.solutiondreamer.com. You will probably also have to edit your catalog/includes/configure.php file.

 

 

Here is the contents of configure.php without database info.

 

define('HTTP_SERVER', 'http://amanita.solutiondreamer.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://amanita.solutiondreamer.com');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', 'I:/Web/amanita.solutiondreamer.com/catalog/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', 'I:/Web/amanita.solutiondreamer.com/catalog/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

define('DIR_FS_CATALOG', 'I:/Web/amanita.solutiondreamer.com/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/');

I seem to have installed wrong path somehow. Every path has repeated twice like

http://localhost/catalog/install/://localh...admin/index.php. Just like here every link has two http://localhost/catalog/(file or folder name). Where I went wrong?

 

Please help.

 

Thanks

 

That should fix this file.

 

Vger

Link to comment
Share on other sites

Your config file has a lot of errors, which will stop your site working.  I have edited below to what they should be, assuming that your website is on a subdomain at http://amanita.solutiondreamer.com.  You will probably also have to edit your catalog/includes/configure.php file.

That should fix this file.

 

Vger

 

 

Thank you for your responses. I will try both suggestions. Right now, I want site to work locally. After, I am done I will have to upload it. So, both suggestions are valuable.

 

Thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...