Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP I messed up something in the configure.php


Guest

Recommended Posts

Posted

I tried to edit some things in the configure.php and now I lost my entire site... here is the error I get now ..

 

Warning: mysql_connect(): Access denied for user: 'total_osc1@localhost' (Using password: YES) in /home/total/public_html/osCommerce/includes/functions/database.php on line 19

Unable to connect to database server!

 

 

 

This is what my configure.php file reads:

 

<?php

/*

$Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 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://totaladultdvds.com');

define('HTTPS_SERVER', 'https://totaladultdvds.com');

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'http://totaladultdvds.com');

define('HTTPS_COOKIE_DOMAIN', 'https://totaladultdvds.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/osCommerce/');

define('DIR_WS_HTTPS_CATALOG', '/osCommerce/');

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

define('DIR_WS_ICONS', '/osCommerce/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

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');

define('DB_SERVER_USERNAME', 'zzzzzzzzzzzz');

define('DB_SERVER_PASSWORD', 'zzzzzzzzzzz');

define('DB_DATABASE', 'zzzzzzzzzzz');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql');

?>

 

What seems to be the problem??? I edit in my file manager How do I fix this problem????

Posted

Stephen,

This is just a guess, you used a control panel to install osc and it encrypted the password in the file, now its not reading the encryption. So I would re enter the password in the php file manually.

 

Also it?s not good to use a file manager to edit the files, just asking for problems. Get your self a good notepad editor :thumbsup:

 

Mark

Posted

What notepad editor do you suggest??? I am very new to all of this I'm sorry....

Posted

Sorry,

I meant to say text editor and not notepad editor :blink:

I?m not sure if I'm allowed to specify a certain editor, it might be consider advertising. But if you do a Google search for text editor you should be able to find one in the first few links.

 

Mark

Archived

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

×
×
  • Create New...