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
Views: 2,116
New Zenner
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
Zen Follower
Why would you want to move it?
Totally Zenned
You shouldn't need to change the location of the files. You should have 2. One in admin/includes and the other in /includes.
New Zenner
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!
Tell staff why this post should be reviewed.