Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where to change the "config.php" location?
#1
Hi,

I want to move the config file to another place, but I don't know where to change code in MyBB. Please help me.

Regards.
#2
\inc\init.php has two references to config.php that you need to update.

edit: however, it is simpler if you just set the bare min permissions on the file. It does not need to be readable by anything other than the php user (actual account or nobody usually) and then chmod to 400. this makes it read only to php and no other user can view or access the file. just remember this when you need to edit it
Lost interest, sold my sites, will browse here once in a while. It's been fun.
#3
Change your config.php filename, then put this as config.php:

<?
if (realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME'])) {
    exit('Denied.');
}

@include('yournewconfigname.php');
?>

Then simply update yournewconfigname.php with your new config name. No core edits have to occur then and your filename has been changed without hassle.


Forum Jump:


Users browsing this thread: 1 Guest(s)