Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to edit configure.php


tomliuwhite

Recommended Posts

Posted

I will transfer oscommerce(php file and database) to another domain. So i should do some configuration. But when i want to edit catalog/includes/configure.php, i see the below source code. And i do not know what shall i do. I did not set the password before. It seems the password is encoded by oscommerce or cpanel(i use cpanel to create database).

define('DB_SERVER_PASSWORD', 'eKCiH8[kLsf4');

What shall i do? Many thanks in advance.

Posted

When you make your new database on your new host you will set up a new user and password. Just change the info to the new stuff.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Posted

Thanks. But i am curious why the password is 'eKCiH8[kLsf4'. Is password encoded by oscommerce or cpanel? If i create a database for oscommerce and then i set the password is "password". Can i do like this: define('DB_SERVER_PASSWORD', 'password') ? Is this safe?

Posted
Thanks. But i am curious why the password is 'eKCiH8[kLsf4'. Is password encoded by oscommerce or cpanel? If i create a database for oscommerce and then i set the password is "password". Can i do like this: define('DB_SERVER_PASSWORD', 'password') ? Is this safe?

 

Right - usually the OSC installer your ISP provides will automatically assign a random, jumbled password like the one you mention above.

 

You can set your database password to whatever you like (as long as you tell MySQL what the new password for that user is) - although I would suggest "password" isn't very safe.... ;-)

Posted
Thanks. But i am curious why the password is 'eKCiH8[kLsf4'. Is password encoded by oscommerce or cpanel? If i create a database for oscommerce and then i set the password is "password". Can i do like this: define('DB_SERVER_PASSWORD', 'password') ? Is this safe?

 

 

Since you will not be installing osCommerce through any one click install kind of thing when you move it to the new server when you add a database through cpanel (or whatever your new host uses) you will be able to assign it a user name and a password, then just use that information for the configure.php files replacing what you have now.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Posted
Right - usually the OSC installer your ISP provides will automatically assign a random, jumbled password like the one you mention above.

 

You can set your database password to whatever you like (as long as you tell MySQL what the new password for that user is) - although I would suggest "password" isn't very safe.... ;-)

Thanks. I just want to make sure. If i add a new username(test) and password(password), then i can change the code:define('DB_SERVER_PASSWORD', 'eKCiH8[kLsf4')

to

define('DB_SERVER_USERNAME', 'test');

define('DB_SERVER_PASSWORD', 'password');

Right?

Posted
right ;-)

Thanks. Please let me ask another question. How dose the OSC installer your ISP provides automatically assign a random, jumbled password? Actually i install oscommerce through a function named Fantastico on cpanel.

Feature of Fantastico

Use Fantastico to automatically install any of the scripts listed on the left. Installing any script will use one of your available MySQL databases. Removing any script will free up one of your used MySQL databases

Posted
Thanks. Please let me ask another question. How dose the OSC installer your ISP provides automatically assign a random, jumbled password? Actually i install oscommerce through a function named Fantastico on cpanel.

Feature of Fantastico

Use Fantastico to automatically install any of the scripts listed on the left. Installing any script will use one of your available MySQL databases. Removing any script will free up one of your used MySQL databases

 

Right - some ISP's make OSC available through Fantastico. Usually you just have to tell it where to install your store and it will do the rest. It will create the database, user and passwords you need for OSC (on the database side).

 

To gain access to the database from then on - simply open /includes/configure.php. The newly assigned database name, username and password are down there at the bottom

 

;-)

Posted
Right - some ISP's make OSC available through Fantastico. Usually you just have to tell it where to install your store and it will do the rest. It will create the database, user and passwords you need for OSC (on the database side).

 

To gain access to the database from then on - simply open /includes/configure.php. The newly assigned database name, username and password are down there at the bottom

 

;-)

Thanks for your help!

Archived

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

×
×
  • Create New...