2013-12-03, 07:06 PM
2013-12-03, 07:44 PM
\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
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
2013-12-16, 11:34 PM
Change your config.php filename, then put this as config.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.
<?
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.