Zen Cart Logo
Forums / General Questions / How to change location of configure.php file ?

How to change location of configure.php file ?

Locked

Views: 2,116

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 Dec 2007, 11:47 AM
#1
zax80 avatar

zax80

New Zenner

Join Date:
Dec 2007
Posts:
1
Plugin Contributions:
0

How to change location of configure.php file ?

Hello,

I need to change the location of configure.php, but don't know how.
Please tell me, if you know how to do that.

Thank you

20 Dec 2007, 12:49 PM
#2
madmumbler avatar

madmumbler

Zen Follower

Join Date:
Dec 2005
Location:
SWFL
Posts:
450
Plugin Contributions:
0

Re: How to change location of configure.php file ?

Why would you want to move it?

20 Dec 2007, 2:48 PM
#3
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: How to change location of configure.php file ?

You shouldn't need to change the location of the files. You should have 2. One in admin/includes and the other in /includes.

21 Dec 2007, 3:42 PM
#4
january avatar

january

New Zenner

Join Date:
Nov 2007
Posts:
6
Plugin Contributions:
0

Re: How to change location of configure.php file ?

I didn't actually move mine, but did move the sensitive information in it (to separate secure encrypted files) by going through it and doing stuff like this:

// define our database connection
require_once('/htdocs/www.mysite.com/secure/inc/dbconnect.php');
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', "$db_host");
define('DB_SERVER_USERNAME', "$db_user");
define('DB_SERVER_PASSWORD', "$db_pass");
define('DB_DATABASE', "$dbname");
define('USE_PCONNECT', 'true');
define('STORE_SESSIONS', 'db');

The variables (such as $db_host) refer to the encrypted file linked by the require_once.

Good luck!