Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Overwrote /admin/includes/configure.php


omahonydonnelly

Recommended Posts

Trying to sort out some SSL probs after installation and some customisation, I overwrote the /admin/includes/configure.php file with the file the original file with no settings indicated. Didn't think to download the one on the server.

 

The catalog seems to be working fine, but I cannot access Admin. I get:

 

1046 - No Database Selected

 

select configuration_key as cfgKey, configuration_value as cfgValue from configuration

 

[TEP STOP]

 

Is there an easy way out of this? I assume I need to edit the file with the correct configurations, but I am not sure where to start.

 

Thanks

Link to comment
Share on other sites

Thanks Vger, I refered to that post, and added the info as per that post and my includes/configure.php file.

 

I changed references to that directory, but now I am just getting a blank page, no error. The catalog is working fine. I just cannot access admin. Would this mean that my catalog/includes/configure.php is OK, but catalog/admin/includes/configure.php is not?

 

I have been through it a hundred times and cannot see anything; then again, I am nearly blind after being up all night on this! I am hoping it is just a "/" that should or shouldn't be there.

 

Perhaps one of the more experienced out there will see the problem in a glance!?

 

<?php

/*

$Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'https://www.angelico.ie'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'https://www.angelico.ie/catalog');

define('HTTPS_CATALOG_SERVER', 'https://www.angelico.ie/catalog');

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

define('DIR_FS_DOCUMENT_ROOT', '/var/www/html'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/catalog/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

define('DIR_WS_IMAGES', '/catalog/images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', '/catalog/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');

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'dbname');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Link to comment
Share on other sites

define('DIR_FS_ADMIN', '/var/www/html/catalog/admin/');

 

define('DIR_FS_CATALOG', '/var/www/html/catalog/');

 

Those settings are based on your root path being /var/www/html/ and on this being an online install for a site which has a full ssl certificate installed - the file pathways are not correct if you only have a shared ssl cert.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...