Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

BIG problems - presumably with configure.php's.


Rubin Remus

Recommended Posts

Posted

Hello everyone,

 

I need this sorted within the next 2 hours. I've been staring at it so long that I'm going mad.

 

My website is stored in the ROOT folder, and currently, neither customer orders or modules are showing. Please examine the following for any errors...

 

includes/configure.php

 

<?php
 define('HTTP_SERVER', 'http://www.*********.co.uk');
 define('HTTPS_SERVER', 'https:/www.*********.co.uk');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', '/');
 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', '/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 define('DB_SERVER', '*********');
 define('DB_SERVER_USERNAME', '*********');
 define('DB_SERVER_PASSWORD', '*********');
 define('DB_DATABASE', '*********');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

admin/includes/configure.php

<?php
 define('HTTP_SERVER', 'http://www.***********.co.uk');
 define('HTTP_CATALOG_SERVER', 'http://www.***********.co.uk');
 define('HTTPS_CATALOG_SERVER', 'https://www.***********.co.uk');
 define('ENABLE_SSL_CATALOG', 'false');
 define('DIR_FS_DOCUMENT_ROOT', 'websites/123reg/symlinks/public_html');
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', '');
 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_DOCUMENT_ROOT . '/includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 define('DB_SERVER', '***********');
 define('DB_SERVER_USERNAME', '***********');
 define('DB_SERVER_PASSWORD', '***********');
 define('DB_DATABASE', '***********');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

Posted

Hello,

 

Why not to download fresh oscommerce package then get the install directory from it and upload to your site?

It will set everything correctly.

 

Stanislav

Posted
Hello,

 

Why not to download fresh oscommerce package then get the install directory from it and upload to your site?

It will set everything correctly.

 

Stanislav

 

I considered that, didn't think it'd work. I need this done within 2 hours now, and desperate time = desperate measures.

 

I'll try it. Any further advice would be great!

 

Thanks.

Posted
I considered that, didn't think it'd work. I need this done within 2 hours now, and desperate time = desperate measures.

 

I'll try it. Any further advice would be great!

 

Thanks.

 

I don't want to count my chickens, but it appears to have worked.

 

THANK YOU! I LOVE YOU!

Posted
didn't think it'd work

I did this rather quickly... but should work ... backup your files before trying...

catalog

<?php
 define('HTTP_SERVER', 'http://www.*********.co.uk');
 define('HTTPS_SERVER', 'https:/www.*********.co.uk');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN','http://www.*********.co.uk');
 define('HTTPS_COOKIE_DOMAIN', 'http://www.*********.co.uk');
 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', '/websites/123reg/symlinks/public_html/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 define('DB_SERVER', '*********');
 define('DB_SERVER_USERNAME', '*********');
 define('DB_SERVER_PASSWORD', '*********');
 define('DB_DATABASE', '*********');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

admin

<?php
 define('HTTP_SERVER', 'http://www.***********.co.uk');
 define('HTTP_CATALOG_SERVER', 'http://www.***********.co.uk');
 define('HTTPS_CATALOG_SERVER', 'https://www.***********.co.uk');
 define('ENABLE_SSL_CATALOG', 'false');
 define('DIR_FS_DOCUMENT_ROOT', '/websites/123reg/symlinks/public_html/');
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', '/websites/123reg/symlinks/public_html/admin/');
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', '/websites/123reg/symlinks/public_html/');
 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_DOCUMENT_ROOT . '/includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 define('DB_SERVER', '***********');
 define('DB_SERVER_USERNAME', '***********');
 define('DB_SERVER_PASSWORD', '***********');
 define('DB_DATABASE', '***********');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

Posted

Excerpt from the general help files:

 

31 ... Get the links and files to work properly in Admin when installing into a root directory?

 

Make sure the following lines in the admin/includes/configure.php file are set properly as follows

 

define('HTTP_CATALOG_SERVER', 'http://www.YOURWEBSITE.com/'); // must have the / at the end

define('DIR_WS_CATALOG', '../'); // MUST have the ../ here

 

 

Try with ../../ or even to get out to the root if working on the includes/configure.php file

Archived

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

×
×
  • Create New...