init config and index.php.template