init config and index.php