working config.php and other fixes