write config.php